Highcharts => Getting the id of a point when clicking on a line chart

后端 未结 6 1454
既然无缘
既然无缘 2020-12-29 07:25

I am building a line chart and I would like, when I click on a point of the line, to display a popup containing some data about this point. The issue I try to resolve is to

6条回答
  •  佛祖请我去吃肉
    2020-12-29 07:58

    I had the same problem ... if I understand correctly. My solution is this, to get the id of the series ... See if it helps ...

    plotOptions{
     series:{
      cursor: 'pointer',
        events: {
          click: function(event) {
            console.log(event.point.series.userOptions.id);
          }
        }
      }
    

提交回复
热议问题