JSFiddle - React, Tailwind, and code Playground
by NesterOne
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Compare Package Managers'
},
xAxis: {
categories: ['volo', 'ender', 'jam', 'component', 'bower']
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
}
},
legend: {
reversed: true
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [{
name: '2013-Jan-01',
data: [0, 212, 279, 431, 698]
}, {
name: '2014-Aug-01',
data: [0, 1204, 749, 1930, 17356]
}, {
name: 'GitHub',
data: [603, 264, 591, 11149, 48677]
}]
});
});