Axis Flags
HTML
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'line', backgroundColor: '#FCFFC5'
},
credits: {
enabled: false
},
legend: {
enabled: false
},
xAxis: [{
id: "1",
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
/* {
id: "2",
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
}*/
],
plotOptions: {
series: {
allowPointSelect: true
}
},
series: [{
//xAxis:"1",
data: [78.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 87.4]
}, {
type: 'flags',
showInLegend: true,
//xAxis:"2",
data: [{
x: 2
}, {
x: 8
}],
width: 1,
height: 20,
fillColor: 'white',
lineWidth: 3,
color: 'black',
//lineColor: 'blue',
style: {
fontSize: '16px',
fontWeight: 'normal',
textAlign: 'center',
color: 'red'
}
}]
});
});