JSFiddle - React, Tailwind, and code Playground
by Vikash Verma
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({
colors: ['#00f900','#ffff3c','#ff2600'],
credits: {enabled:false},
exporting: {enabled:false},
legend: {itemDistance:60},
lineColor:'red',
chart: {
type: 'column',
backgroundColor: 'transparent'
},
title: {
text:''
},
legend:{
itemStyle: {
color: 'white',
fontWeight:'normal',
fontFamily:'helvetica',
fontSize:'12px'
}
},
xAxis: {
categories: ['Jan', 'Feb', 'mar'],
showEmpty: false,
labels: {
format:'{value}',
style: {
color: '#FFFFFF',
marginTop:'20'
}
}
},
yAxis: {
title: {
text: '',
},
gridLineWidth: 0,
labels: {
format:'{value}',
style: {
color: '#FFFFFF',
fontSize:'8px'
}
}
},
plotOptions: {
column: {
borderColor:"transparent",
animation: false,
dataLabels: {
enabled: true,
color: "#FFFFFF",
style: {"fontSize":"18px","fontWeight":"normal","textShadow":"0"}
},
enableMouseTracking: false
}
},
series: [{
name: 'On Track',
data: [77, 80,""]
}, {
name: 'At Risk',
data: [2, 3,""]
}, {
name: 'High Risk',
data: [3, 8,""]
}]
});
});