Highcharts Demo
author(s): Torstein Hønsi
by arielkotch
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px; max-width: 800px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
title: {
text: 'Zone with dash style'
},
subtitle: {
text: 'Dotted line typically signifies prognosis'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [10,10],
zoneAxis: 'x',
zones: [{
value: 0
}, {
dashStyle: 'dot'
}]
},{
data: [20,20],
zoneAxis: 'x',
zones: [{
value: 0
}, {
dashStyle: 'dot'
}]
}]
});