Cannot set Individual Point color in Series for Highstock API, it works for Highchart API

寵の児 提交于 2019-12-23 02:54:09

问题


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/



来源:https://stackoverflow.com/questions/11985901/cannot-set-individual-point-color-in-series-for-highstock-api-it-works-for-high

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!