JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="http://cdnjs.com/libraries/jqueryui-touch-punch"></script>
<script src="http://github.highcharts.com/highcharts.src.js"></script>
<button id="start">Start</button>
<button id="stop">Stop</button>
<div id="container" style="min-width: 310px; max-width: 800px; height:700px; margin: 0 auto"></div>
CSS
<link rel="stylesheet" type="text/css" href="/css/normalize.css"/> <link rel="stylesheet" type="text/css" href="/css/result-light.css"/>
JavaScript
$(function () {
var chart,
interval,
refreshRate = 0.5 * 1000,
chrtxAxis = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '30', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50'];
chart = $('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Historic World Population by Region'
},
tooltip: {
style: {
color: 'red',
fontSize: 12
}
},
subtitle: {
text: 'Source: Wikipedia.org'
},
xAxis: {
categories: chrtxAxis,
title: {
text: null
}
},
yAxis: {
min: 0,
title: {
text: 'Population (millions)',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
tooltip: {
valueSuffix: ' millions'
},
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -40,
y: 100,
floating: true,
borderWidth: 1,
backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor || '#FFFFFF'),
shadow: true
},
credits: {
enabled: false
},
series: [{
name: 'Year 1800',
data: [107, 31, 635, 203, 2]
}, {
name: 'Year 1900',
data: [133, 156, 947, 408, 6]
}, {
name: 'Year 2008',
data: [973,...