JSFiddle - React, Tailwind, and code Playground
by asiu
HTML
<script src="http://journovationsu.org/libraries/Highcharts-3.0.7/js/highcharts.js"></script>
<script src="http://journovationsu.org/libraries/Highcharts-3.0.7/js/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'areaspline'
},
title: {
text: 'Book sales in year 2013'
},
legend: {
layout: 'vertical',
align: 'left',
verticalAlign: 'top',
x: 100,
y: 100,
floating: true,
borderWidth: 1,
backgroundColor: '#FFFFFF'
},
xAxis: {
categories: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
],
plotBands: [{
from: 4.5,
to: 6.5,
color: 'rgba(68, 170, 213, .2)'
}]
},
yAxis: {
title: {
text: 'Books purchased'
}
},
tooltip: {
shared: true,
valueSuffix: ' books'
},
credits: {
enabled: false
},
plotOptions: {
areaspline: {
fillOpacity: 0.5
}
},
series: [{
name: 'History books',
data: [12, 3, 2.5, 1, 6, 4, 4, 3, 1, 6, 4, 4, 3]
}, {
name: 'Econ books',
data: [1, 3, 4, 3, 3, 5, 4, 3, 1, 6, 4, 4, 3]
}]
});
});