JSFiddle - React, Tailwind, and code Playground
by Coogan
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://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: 'column'
},
data: {
googleSpreadsheetKey: '1jorW9n3OO5VL_ZsdMeUthI2CqI4WRug1HzX1UjQbRmU'
}
title: {
text: 'ASIST Responses'
},
subtitle: {
text: 'Source: WorldClimate.com'
},
xAxis: {
categories: [
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: 'Responses'
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
}]
});
});