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; max-width: 800px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
var chart;
$(document).ready(function() {
$('#container').highcharts({
chart: {
type: 'bar'
},
xAxis: [{
// categories: categories,
reversed: false
}, { // mirror axis on right side
opposite: true,
reversed: false,
//categories: categories,
linkedTo: 0
}],
plotOptions: {
series: {
stacking: 'normal',
borderWidth: 0
}
},
series: [{
name: 'Strongly Disagree',
data: [-10, -5, -6]
}, {
name: 'Disagree',
data: [-2, -5, -3]
}, {
name: 'Neutral',
data: [-2, -5, -3],
color: 'gray',
id: 'neutral'
},{
name: 'Strongly Agree',
data: [5, 1,6]
},{
name: 'Agree',
data: [6, 8, 2]
},{
name: 'Neutral',
data: [2, 5, 3],
color: 'gray',
linkedTo: 'neutral'
}]
});
});
});