Attach arbitrary data to Highcharts data points [d

2019-08-19 12:36发布

问题:

This question already has an answer here:

  • Set Additional Data to highcharts series 5 answers

Is it possible to attach additional data to a data point, and later access that data directly from an event handler?

series: [{
    data: [
        { x: ..., y: ..., customProperty:... }
    ]
}]

http://jsfiddle.net/JGCmt/1/

回答1:

Yes it is possible to access the date from an event handler.

event.point.options.customProperty

DEMO



标签: highcharts