JSFiddle - React, Tailwind, and code Playground
by Aman Adhikari
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: 300px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
colors: ['#4E82BE', '#2f7ed8', '#910000', '#8bbc21', '#1aadce'],
lang: {
numericSymbols: null //otherwise by default ['k', 'M', 'G', 'T', 'P', 'E']
,thousandsSep: ','
},
credits: {
enabled: false
},
chart: {
type: 'column'
},
title: {
text: 'Clinical Performance',
style: {
color: '#2A4568',
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
}
},
subtitle: {
text: 'July \'14',
style: {
color: '#2A4568',
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
}
},
xAxis: {
type: 'category',
labels: {
rotation: -45,
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
},
yAxis: {
min: 0,
title: {
text: 'Service Coordination'
},
labels: {
formatter: function () {
return this.value;
}
}
},
legend: {
enabled: false
},
tooltip: {
formatter: function () {
return 'Service Coordination in ' + this.key + ': <b>' + this.y + '</b>';
}
},
series: [{
name: 'Population',
data: [
['7/1/2013', 1894],
['8/1/2013', 1700],
['9/1/2013', 1365],
['10/1/2013', 1338],
['11/1/2013', 1193],
['12/1/2013', 1600],
['1/1/2014', 1802],
['2/1/2014', 1718],
['3/1/2014', 1869],
['4/1/2014', 2062],
...