HIghcharts个人情节点颜色

Adr*_*ian 3 javascript jquery highcharts

可能重复:
Highstock/Highchart无法设置单点颜色

目前使用addPoint函数更新highcharts图,某些点需要突出显示/颜色不同......我在api参考中找不到这样做的方法,有可能吗?

//exampleA - Series arrayId
//exampleB - Point value 
//exampleC when not null would has extra tooltip info, these points need to be a different color.

addPoint: function(exampleA, exampleB, exampleC) 
{
    mcjs.chart.series[exampleA].addPoint({ y: exampleB, exampleC });
}
Run Code Online (Sandbox Code Playgroud)

Fel*_*eca 5

对的,这是可能的.

您可以更改fillColor属性Marker内部的Data属性.

color里面的属性data对我没用.

如果你想要一个绿点,你可以看看我做的这个例子.