JSFiddle - React, Tailwind, and code Playground
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; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
exporting: {
enabled: false
},
chart: {
type: 'spline',
},
title: {
text: 'Debt Obligations'
},
xAxis: {
type: 'datetime',
title: {
text: 'Date'
}
},
yAxis: {
title: {
text: 'Debt'
},
min: 0
},
tooltip: {
headerFormat: '<b>{series.name}</b><br>',
pointFormat: '{point.x:%e. %b}: {point.y}'
},
series: [{
name: 'Debt Obligation',
data: [
[Date.UTC(2014, 6, 7), 4500],
[Date.UTC(2014, 5, 24), 5454],
[Date.UTC(2014, 5, 23), 222],
[Date.UTC(2014, 5, 21), 1000]
]
}]
});
});