index.htm 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Highcharts Example</title>
  6. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
  7. <script type="text/javascript">
  8. $(function () {
  9. $('#container').highcharts({
  10. chart: {
  11. polar: true,
  12. type: 'line'
  13. },
  14. title: {
  15. text: 'Budget vs spending',
  16. x: -80
  17. },
  18. pane: {
  19. size: '80%'
  20. },
  21. xAxis: {
  22. categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
  23. 'Information Technology', 'Administration'],
  24. tickmarkPlacement: 'on',
  25. lineWidth: 0
  26. },
  27. yAxis: {
  28. gridLineInterpolation: 'polygon',
  29. lineWidth: 0,
  30. min: 0
  31. },
  32. tooltip: {
  33. shared: true,
  34. pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
  35. },
  36. legend: {
  37. align: 'right',
  38. verticalAlign: 'top',
  39. y: 70,
  40. layout: 'vertical'
  41. },
  42. series: [{
  43. name: 'Allocated Budget',
  44. data: [43000, 19000, 60000, 35000, 17000, 10000],
  45. pointPlacement: 'on'
  46. }, {
  47. name: 'Actual Spending',
  48. data: [50000, 39000, 42000, 31000, 26000, 14000],
  49. pointPlacement: 'on'
  50. }]
  51. });
  52. });
  53. </script>
  54. </head>
  55. <body>
  56. <script src="../../js/highcharts.js"></script>
  57. <script src="../../js/highcharts-more.js"></script>
  58. <script src="../../js/modules/exporting.js"></script>
  59. <div id="container" style="min-width: 400px; max-width: 600px; height: 400px; margin: 0 auto"></div>
  60. </body>
  61. </html>