Highcharts Demo
author(s): Torstein Hønsi
by ibroom
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
Highcharts.chart('container', {
xAxis: {
tickInterval: 10, // one day
//type: 'datetime'
},
yAxis: {
plotBands: [{ // mark the weekend
color: {
linearGradient: [0, 000, 0, 400],
stops: [
[0, 'rgba(255, 0, 0, 1)'],
[1, 'rgba(255, 0, 0, 0.5)']
]
},
from: 50,
to: 100
},{ // mark the weekend
color: {
linearGradient: [0, 0, 0, 400],
stops: [
[0, 'rgba(0, 128, 0, 0.1)'],
[1, 'rgba(0, 128, 0, 1)']
]
},
from: 0,
to: 50
}]
},
series: [{
data: [10,20,30,40,50,60,70,80,90,100],
pointStart: 0,
pointInterval: 10
}],
plotOptions: {
series: {
color: 'black'
}
}
});