Highstock / Highchart cannot set the color of a single point

I am working on Highstock, I am trying to set the color to a specific point in the “data” in Highstock, as in the example, but I could not get it to work, no matter how I set the color, it does not appear on the chart.

I tried the option with the Highchart API, it works, but it does not work with Highstock.

jsfiddle link (what i tried)

Is it because I use x, y to indicate a point? Please help.

+5
source share
2 answers

Highstock has markers disabled by default. You will need to include them explicitly as follows:

plotOptions: {
    series: {
        marker: {
            enabled: true    
        }
    }
},

Learn more at http://api.highcharts.com/highstock/plotOptions.series.marker

+3
source

, , color , marker.

, fillColor, .

data: [
    {x: 1343862840000, y: 4, marker:{ fillColor: 'red'} },
    {x:1343863200000, y:5, marker:{ fillColor: 'green'}}
]

:
highstock . .
, .
Chart StockChart.

+10

All Articles