JSFiddle - React, Tailwind, and code Playground
by Yogesh Kanthale
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.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: 'columnrange',
inverted: true
},
title: {
text: 'Claim Data Cycyle'
},
xAxis: {
categories: [
'Chain Charges',
'Submitted',
'Clearing House Accepted',
'Insurance Accepted',
'Paid',
'Pt. Statement',
'Pt.Payment',
'WriteOff']
},
yAxis: {
title: {
text: 'Dates'
},
type: 'datetime',
dateTimeLabelFormats: { // don't display the dummy year
month: '%e. %b',
year: '%b'
},
tickInterval: 24 * 1000 * 3600 * 1
},
tooltip: {
formatter: function () {
return Highcharts.dateFormat('%e - %b - %Y', this.point.low) + " to " + Highcharts.dateFormat('%e - %b - %Y', this.point.high);
}
},
legend: {
enabled: false
},
series: [{
name: 'Period',
data: [
[Date.UTC(1970, 10, 25), Date.UTC(1970, 10, 26)],
[Date.UTC(1970, 10, 26), Date.UTC(1970, 10, 27)],
[Date.UTC(1970, 10, 27), Date.UTC(1970, 10, 28)],
[Date.UTC(1970, 10, 28), Date.UTC(1970, 10, 29)]
]
}]
});
});