Forked from anonymous/horizontal-bar-chart-basic.js
Created
February 3, 2017 12:59
-
-
Save arossouw/0ce3bedd5e9670b9923462d9af1e7867 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Highcharts.chart('container', { | |
chart: { | |
type: 'column' | |
}, | |
title: { | |
text: 'Monthly Average Rainfall' | |
}, | |
subtitle: { | |
text: 'Source: WorldClimate.com' | |
}, | |
xAxis: { | |
categories: [ | |
'Jan', | |
'Feb', | |
'Mar', | |
'Apr', | |
'May', | |
'Jun', | |
'Jul', | |
'Aug', | |
'Sep', | |
'Oct', | |
'Nov', | |
'Dec' | |
], | |
crosshair: true | |
}, | |
yAxis: { | |
min: 0, | |
title: { | |
text: 'Rainfall (mm)' | |
} | |
}, | |
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 | |
} | |
}, | |
series: [{ | |
name: 'Tokyo', | |
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], | |
showInLegend: false | |
}] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment