无法为Highstock API在Series中设置Individual Point颜色,它适用于Highchart API [英] Cannot set Individual Point color in Series for Highstock API, it works for Highchart API
问题描述
我正在研究Highstock,我试图在Highstock的数据中设置一个特定点的颜色,如示例,它使用Highchart API,但我无法使用Highstock API工作,无论我如何设置颜色,它都不显示在图上。
有人可以帮忙吗?
这是我到目前为止所尝试的
Highstock默认禁用点标记,您需要按如下方式显式启用它们: >
plotOptions:{
series:{
marker:{
enabled:true
}
}
},
API参考: http://api.highcharts.com/highstock#point.marker.enabled
示例: http://jsfiddle.net/gh/ get / jquery / 1.7.2 / highslide-software / highcharts.com / tree / master / samples / stock / plotoptions / series-marker /
jsFiddle为你的代码: http://jsfiddle.net/jugal/nrRDg/
I am working on Highstock, I am trying to set a color to a specific point in "data" in Highstock, like in the example, its using Highchart API,but I couldn't get it to work with Highstock API, no matter how I set the color, it doesn't show on the graph.
Can someone please help? Here is what I have tried so far
Highstock has point markers disabled by default, you will need to enable them explicitly as follows,
plotOptions: {
series: {
marker: {
enabled: true
}
}
},
API Reference: http://api.highcharts.com/highstock#point.marker.enabled
Example: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/stock/plotoptions/series-marker/
jsFiddle for your code: http://jsfiddle.net/jugal/nrRDg/
这篇关于无法为Highstock API在Series中设置Individual Point颜色,它适用于Highchart API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!