index.htm 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. },
  13. title: {
  14. text: 'Highcharts Polar Chart'
  15. },
  16. pane: {
  17. startAngle: 0,
  18. endAngle: 360
  19. },
  20. xAxis: {
  21. tickInterval: 45,
  22. min: 0,
  23. max: 360,
  24. labels: {
  25. formatter: function () {
  26. return this.value + '°';
  27. }
  28. }
  29. },
  30. yAxis: {
  31. min: 0
  32. },
  33. plotOptions: {
  34. series: {
  35. pointStart: 0,
  36. pointInterval: 45
  37. },
  38. column: {
  39. pointPadding: 0,
  40. groupPadding: 0
  41. }
  42. },
  43. series: [{
  44. type: 'column',
  45. name: 'Column',
  46. data: [8, 7, 6, 5, 4, 3, 2, 1],
  47. pointPlacement: 'between'
  48. }, {
  49. type: 'line',
  50. name: 'Line',
  51. data: [1, 2, 3, 4, 5, 6, 7, 8]
  52. }, {
  53. type: 'area',
  54. name: 'Area',
  55. data: [1, 8, 2, 7, 3, 6, 4, 5]
  56. }]
  57. });
  58. });
  59. </script>
  60. </head>
  61. <body>
  62. <script src="../../js/highcharts.js"></script>
  63. <script src="../../js/highcharts-more.js"></script>
  64. <script src="../../js/modules/exporting.js"></script>
  65. <div id="container" style="min-width: 310px; max-width: 400px; height: 400px; margin: 0 auto"></div>
  66. </body>
  67. </html>