You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.8 KiB

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