JSFiddle - React, Tailwind, and code Playground
by techunter
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; height: 400px; margin: 20px auto"></div>
JavaScript
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'spline'
},
title: {
text: 'Mean time / treatment escalation'
},
subtitle: {
text: 'Clinic Report'
},
xAxis: {
categories: ['2000', '2001', '2002', '2003', '2004', '2005', '2006',
'2007', '2008', '2009', '2010', '2011', '2012']
},
yAxis: {
title: {
text: 'Years'
},
labels: {
formatter: function() {
return this.value
}
}
},
tooltip: {
crosshairs: true,
shared: true
},
plotOptions: {
spline: {
marker: {
radius: 4,
lineColor: '#666666',
lineWidth: 1
}
}
},
series: [{"name":"75th percentile","dashStyle":"Dash","type":"spline","data":[[0,2],[1,2.1],[2,2.2],[3,2.1],[4,2.2],[5,2.3],[6,2.3],[7,2.2],[8,2.5],[9,2.1],[10,2.6],[11,2.8],[12,2.3]],"lineWidth":1,"shadow":false,"states":{"hover":{"enabled":true,"lineWidth":2}},"marker":{"enabled":false}},
{"name":"50th percentile","type":"spline","data":[[0,1.3],[1,1.4],[2,1.5],[3,1.8],[4,2.1],[5,2.0],[6,2.1],[7,2],[8,1.9],[9,2],[10,1.7],[11,2],[12,1.8]],"lineWidth":1,"dashStyle":"Solid","shadow":false,"states":{"hover":{"enabled":true,"lineWidth":2}},"marker":{"enabled":false}},
{"name":"25th...