JSFiddle - React, Tailwind, and code Playground
by sbochan
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: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
//draw the highchart - combination of column, area and line
$('#container').highcharts({
chart: {
zoomType: 'x',
marginRight: 130
},
title: {
text: 'Opportunity - Next 90 days',
style: {
font: 'normal 12px "Trebuchet MS", Verdana, sans-serif'
}
},
yAxis: [{
min:0,
max:100000,
lineWidth: 1,
title: null,
labels:{
formatter:function(){
return Highcharts.numberFormat(this.value,0,'');
}
}
}],
series: [{
name: 'Total ($)',
type: 'area',
lineColor: '#FB9E03',
color: '#FEE5BB',
data: [1016, 1016, 1015.9, 1015.5, 1012.3, 1009.5, 1009.6, 1010.2, 1013.1, 1016.9, 1018.2, 1016.7]
}]
});
});