Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. $(function () {
  2. $('#container').highcharts({
  3. chart: {
  4. type: 'column',
  5. zoomType: 'x'
  6. },
  7. title: {
  8. text: 'Monthly Average Rainfall'
  9. },
  10. subtitle: {
  11. text: 'Source: WorldClimate.com'
  12. },
  13. xAxis: {
  14. categories: dates ,
  15. crosshair: true,
  16. crosshair: true,
  17. minTickInterval: 24
  18. },
  19. yAxis: {
  20. min: 0,
  21. title: {
  22. text: 'Rainfall (mm)'
  23. }
  24. },
  25. tooltip: {
  26. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  27. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  28. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  29. footerFormat: '</table>',
  30. shared: true,
  31. useHTML: true
  32. },
  33. plotOptions: {
  34. column: {
  35. pointPadding: 0.2,
  36. borderWidth: 0
  37. }
  38. },
  39. series: [{
  40. name: 'Tokyo',
  41. data: ticks,
  42. groupPadding: 0
  43.  
  44. }]
  45. });
  46. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement