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: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'area'
},
title: {
text: 'Area chart with negative values'
},
yAxis: {
max: 15,
min: -15
},
credits: {
enabled: false
},
series: [{
name: 'Joe',
data: [-2, -2, -1, 0, 1, 2, 2, 3, 5, 6, 7, 5, 3, 2, 1, 0, -1 -2, -1, 0]
}]
});
});