将任意数据附加到Highcharts数据点

时间:2013-04-18 22:01:59

标签: highcharts

是否可以将附加数据附加到数据点,然后直接从事件处理程序访问该数据?

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

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

1 个答案:

答案 0 :(得分:1)

是的,可以从事件处理程序访问日期。

event.point.options.customProperty

<强> DEMO