简体   繁体   中英

Highcharts - master-detail - master with multiple color

I need to underline with different colors data, based on some values. I can change color in detail chart, but I need to change it in master chart too.

Here the JSFiddle http://jsfiddle.net/2msZe/35/

I have printed in console the data, and here there is color set to black.

{y:0.97, color:'black', flag:true}

Any help?

Thanks

You need to disable turbpThreshold , otherwise colors are not used, see: http://jsfiddle.net/2msZe/37/

            plotOptions: {
                series: {

                    turboThreshold: 0,
                    marker: {
                        enabled: false
                    },
                    shadow: false,
                    states: {
                        hover: {
                            lineWidth: 1
                        }
                    },
                    enableMouseTracking: false
                }
            },

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM