Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8648035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:13:13+00:00 2026-06-12T13:13:13+00:00

Using Highcharts, how can I select a point using it’s id? For example, if

  • 0

Using Highcharts, how can I select a point using it’s id? For example, if I create a chart using the following code:

 chart1 = new Highcharts.Chart({
         chart: {
            renderTo: 'container',
            type: 'scatter'
         },
         title: {
            text: 'Fruit Consumption'
         },
         xAxis: {
            categories: ['Apples', 'Bananas', 'Oranges']
         },
         yAxis: {
            title: {
               text: 'Fruit eaten'
            }
         },
         series: [{
            name: 'Jane',
            data: [{
                name: 'Point1',
                x: 1,
                y: 2
            }, {
                name: 'Point2',
                x: 2,
                y: 5
            }]
         }, {
            name: 'John',
            data: [5, 7, 3]
         }]
      });
   });

The tooltip tells me that when I hover over a point, what the id is. However, I can’t figure out the syntax to identify that point. I know that chart1.series[0].name returns Jane. Also,
chart1.series[0].data[0].namereturnspoint1` Is there an easy way that I can just select the point and change the color knowing only ‘point1’?

I’m wondering if there is a more efficient way other than looping through all of the points each time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:13:14+00:00Added an answer on June 12, 2026 at 1:13 pm

    You can set an id for each point you want to get.

    series: [{
        name: 'Jane',
        data: [{
            'name': 'Point1',
            'id': 'point1',
            'x': 1,
            'y': 2
        }, {
            'name': 'Point2',
            'id': 'point2',
            'x': 2,
            'y': 5
        }]
    }, {
        name: 'John',
        data: [5, 7, 3]
    }]
    

    Then you can get the point by the following code.

    // assuming that chart is your chart var
    chart.get('point1');
    

    demo

    Or if you don’t want to set an id you can simple loop thrue points to compare the name you want to find with the point name.

    Reference:

    • http://api.highcharts.com/highstock#object-Chart
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a bar chart below. chart = new Highcharts.Chart({ chart: { renderTo:
I'm using the HighCharts library to create a chart and then update it via
Using HighCharts 2.2.3 in an ASP.NET site. See http://jsfiddle.net/wergeld/TDLvc/ for code example. My site
I'm new at using HighCharts in javascript. I'm doing a line chart, but the
I'm trying to create a visualized chart using Jquery Highcharts plug-in. But I'm unable
I'm trying to create a chart using highcharts to represent some data. However i'm
i'm using Highcharts , the chart result is a collection of SVG elements and
We are using highcharts and are trying to customize a chart to look similar
I want to add a background image to a bar chart using Highcharts and
I'm trying to display a chart titled Purchases over Time using Highcharts in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.