Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myChart = Highcharts.chart('container', {
- chart: {
- type: 'column'
- },
- title: {
- text: 'Monthly Average Rainfall'
- },
- xAxis: {
- categories: ['07/01/2019', '08/01/2019', '09/01/2019', '10/01/2019', '11/01/2019'],
- crosshair: true
- },
- yAxis: {
- min: 0,
- },
- 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: [{
- data: [368, 295, 426, 476, 370]
- }]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement