ElementStacks
HTML
<script src="http://highcharts.com/js/testing.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
// github.com/rstacruz
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
defaultSeriesType: 'area',
animation: true
},
plotOptions: { area: { stacking: 'normal', marker: { enabled: false } } },
yAxis: { max: 500, min: 0 },
xAxis: {},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
},{
data: [54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6]
}]
});
window.setInterval(function() {
chart.series[0].addPoint(Math.random() * 200, false, true);
chart.series[1].addPoint(Math.random() * 200, false, true);
chart.redraw();
}, 1000);