Highstock, click values undefined

。_饼干妹妹 提交于 2019-12-25 05:26:07

问题


I was working with additional values and click option, got help here highstocks, how can I bring values that I will only use on the 'click' option?

Everything went fine about the click and additional value

Then, I found out that I have problems to return the values if I have more than 655 points on the chart (undefined value). If I limit to less than 655 it appears fine.

Tried using the turboThreshold, but no luck. Still undefined value.

I tried include turboThreshold in the plotOptions 'series' nothing. In the plotOptions 'spline' and same thing :(

Does anyone have a clue?

Created a fiddle example http://jsfiddle.net/gGCFg/

click: function() {
alert(this.x) // data hora
alert(this.y); // valor
alert(this.lat);
    alert(this.long);
}

The interesting thing it's that even with 500 on fiddle I was unable to make it work nice :( Click on any point it will alert this.y , this.x and my additional values with the undefined.

Thanks


回答1:


You need to disable datagrouping

http://jsfiddle.net/gGCFg/1/

http://api.highcharts.com/highstock#plotOptions.series.dataGrouping

dataGrouping:{
                enabled:false
            },


来源:https://stackoverflow.com/questions/17448415/highstock-click-values-undefined

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