Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i add in highcharts a different dashStyle just for a part of the graph

Tags:

svg

highcharts

At the last two days i want to indicate that i am missing some data, and i'd want it to show a straight dashed line on the same graph. can i change the dashStyle only for parts of the graph?

enter image description here

like image 772
Leon Avatar asked Jan 22 '26 02:01

Leon


2 Answers

No it is not possible, you need two series, first line and second with dashed style.

like image 55
Sebastian Bochan Avatar answered Jan 25 '26 10:01

Sebastian Bochan


You can apply 'zones' to a series: http://api.highcharts.com/highcharts/plotOptions.series.zones Just use the dashStyle option like in this example http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/series/color-zones-dashstyle-dot/

 zones: [{
        value: 8
    }, {
        dashStyle: 'dot'
    }]
like image 22
Stefano Capuzzi Avatar answered Jan 25 '26 08:01

Stefano Capuzzi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!