JSFiddle - React, Tailwind, and code Playground
by aaewong
HTML
<script src="http://code.highcharts.com/4.1.9/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({
chart: {
type: 'column'
},
title: {
text: 'Column chart with negative values'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
credits: {
enabled: false
},
series: [{
name: '2px Border',
data: [5, 3, 4, 7, 2],
borderWidth: 2,
borderColor: 'black'
}, {
name: '5px Border',
data: [2, -2, -3, 2, 1],
borderWidth: 5,
borderColor: 'red'
}, {
name: 'Default',
data: [4, -5, -0, -2, -3],
},{
name: 'No Border',
data: [4, -5, -0, -2, -3],
borderWidth: 0
}]
});
});