JSFiddle - React, Tailwind, and code Playground
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 () {
(function(H) {
H.wrap(H.seriesTypes.column.prototype, 'crispCol', function (p, x, y, w, h) {
var rect = p.call(this, x, y, w, h),
border = this.borderWidth;
if (border) {
rect.y += border / 2;
rect.height = Math.max(1, rect.height - border);
}
return rect;
});
})(Highcharts);
$('#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
}]
});
});