JSFiddle - React, Tailwind, and code Playground
by suphalak_26
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: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
borderColor: '#000000',
borderRadius: 0,
borderWidth: 2,
type: 'bar'
},
title: {
text: 'Performance Summary'
},
xAxis: {
categories: ['Mutual Fund', 'Deposit'],
title: {
text: null
}
},
yAxis: {
min: 0,
title: {
text: 'Bil. THB',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
tooltip: {
valueSuffix: ' Billions'
},
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -40,
y: 100,
floating: true,
borderWidth: 1,
backgroundColor: '#FFFFFF',
shadow: true
},
credits: {
enabled: false
},
series: [{
color: '#3366CC',
name: 'target',
data: [87.5, 152.2]
}, {
color: '#990000',
name: 'actual',
data: [80, 140],
}]
});
});