高图表启用高库存阈值功能不起作用 [英] Highcharts Highstock enabledThreshold feature not working
本文介绍了高图表启用高库存阈值功能不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我似乎无法在ReactJS的Highstock的AreaSpline图表中做到这一点,因此只有当行中的x小于时,标记才可见. 我检查了几个小提琴,Highcharts正在使用完全相同的配置.
I can't seem to make it so in Highstock's AreaSpline chart in ReactJS so that markers are only visible when there are less than x in the line. I checked several fiddles and Highcharts is working with the exact same configuration.
不起作用:
https://jsfiddle.net/0qybw7jt/
Not working:
https://jsfiddle.net/0qybw7jt/
工作:
https://jsfiddle.net/8uwvm1np/
区别在于构造器chart
与stockChart
推荐答案
我必须显式设置marker:enabled为undefined,请参见代码:
I had to explicitly set marker: enabled to undefined, see code:
plotOptions: {
series: {
marker: {
enabled: undefined,
enabledThreshold: 1,
radius: 4
}
}
},
这篇关于高图表启用高库存阈值功能不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文