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: 'Package Manager Status'
},
xAxis: {
categories: ['volo', 'ender', 'jam', 'component', 'bower', 'jspm'],
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: 'pkg/count 2013-Jan',
data: [0, 212, 279, 431, 698, 0]
}, {
name: 'pkg/count 2014-Aug',
data: [0, 1204, 749, 1930, 17356, 70]
}, {
name: 'github 2014-Aug',
data: [603, 264, 591, 11149, 48677, 175]
}]
});
});