Cannot set Individual Point color in Series for Hi

2019-06-04 04:41发布

问题:

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

回答1:

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/