Highcharts Stock Demo
author(s): Torstein Hønsi
HTML
<div id="container" style="height: 400px; min-width: 600px"></div>
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
JavaScript
$(function () {
var chart = new Highcharts.Chart({
chart: {
defaultSeriesType: 'line',
renderTo: 'container'
},
plotOptions: {
line: {
marker: {
enabled: true
},
pointPlacement: "between"
}
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [{
y: 29.9,
marker: {
lineWidth: 2
}
}, {
y: null,
marker: {
enabled: false
}
}, {
y: 106.4,
marker: {
//lineWidth: 2
}
}, {
y: null,
marker: {
enabled: false
}
}, {
y: 144.0,
marker: {
//lineWidth: 2
}
}, {
y: 176.0,
marker: {
//lineWidth: 2
}
}, {
y: null,
marker: {
lineWidth: 2
}
}, {
y: 148.5,
marker: {
lineWidth: 2
}
}, {
y: 216.4,
marker: {
enabled: false
}
}, {
y: 194.1,
marker: {
enabled: false
}
}, {
y: 95.6,
marker: {
enabled: false
}
}, {
y: 54.4,
marker: {
enabled: false
}
}]
}]
});
});