Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('#container').highcharts({
- chart: {
- type: 'column',
- zoomType: 'x'
- },
- title: {
- text: 'Monthly Average Rainfall'
- },
- subtitle: {
- text: 'Source: WorldClimate.com'
- },
- xAxis: {
- categories: dates ,
- crosshair: true,
- crosshair: true,
- minTickInterval: 24
- },
- 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: ticks,
- groupPadding: 0
- }]
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement