本文介绍了Highstock / Highchart不能设置个人点颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在研究Highstock,我试图在Highstock的数据中设置一个特定点的颜色,如,但是我无法让它工作,无论我如何设置颜色,它都不显示在图上。
I am working on Highstock, I am trying to set a color to a specific point in "data" in Highstock, like in the example, but I couldn't get it to work, no matter how I set the color, it doesn't show on the graph.
我尝试了Highchart API的选项,它可以工作,但它不适用于Highstock。
I have tried the option with Highchart API, it works, but it doesn't work with Highstock.
是否因为我使用x,y来指定点?请帮忙。
Is it because I am using x, y to specify the point? Please help.
推荐答案
Highstock默认情况下禁用点标记。您需要明确地启用它们,如下所示:
Highstock has point markers disabled by default. You will need to enable them explicitly as follows:
plotOptions: {
series: {
marker: {
enabled: true
}
}
},
请参阅
这篇关于Highstock / Highchart不能设置个人点颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!