Attach arbitrary data to Highcharts data points [duplicate]

自作多情 提交于 2019-12-12 05:18:06

问题


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



来源:https://stackoverflow.com/questions/16093870/attach-arbitrary-data-to-highcharts-data-points

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!