Leon
Leon

Reputation: 1136

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

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

Upvotes: 3

Views: 1853

Answers (2)

Stefano Capuzzi
Stefano Capuzzi

Reputation: 11

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'
    }]

Upvotes: 1

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

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

Upvotes: 1

Related Questions