市长热线演示版

index.htm 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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://cdn.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
  7. <script type="text/javascript">
  8. $(function () {
  9. $('#container').highcharts({
  10. title: {
  11. text: 'Combination chart'
  12. },
  13. xAxis: {
  14. categories: ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']
  15. },
  16. labels: {
  17. items: [{
  18. html: 'Total fruit consumption',
  19. style: {
  20. left: '50px',
  21. top: '18px',
  22. color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
  23. }
  24. }]
  25. },
  26. series: [{
  27. type: 'column',
  28. name: 'Jane',
  29. data: [3, 2, 1, 3, 4]
  30. }, {
  31. type: 'column',
  32. name: 'John',
  33. data: [2, 3, 5, 7, 6]
  34. }, {
  35. type: 'column',
  36. name: 'Joe',
  37. data: [4, 3, 3, 9, 0]
  38. }, {
  39. type: 'spline',
  40. name: 'Average',
  41. data: [3, 2.67, 3, 6.33, 3.33],
  42. marker: {
  43. lineWidth: 2,
  44. lineColor: Highcharts.getOptions().colors[3],
  45. fillColor: 'white'
  46. }
  47. }, {
  48. type: 'pie',
  49. name: 'Total consumption',
  50. data: [{
  51. name: 'Jane',
  52. y: 13,
  53. color: Highcharts.getOptions().colors[0] // Jane's color
  54. }, {
  55. name: 'John',
  56. y: 23,
  57. color: Highcharts.getOptions().colors[1] // John's color
  58. }, {
  59. name: 'Joe',
  60. y: 19,
  61. color: Highcharts.getOptions().colors[2] // Joe's color
  62. }],
  63. center: [100, 80],
  64. size: 100,
  65. showInLegend: false,
  66. dataLabels: {
  67. enabled: false
  68. }
  69. }]
  70. });
  71. });
  72. </script>
  73. </head>
  74. <body>
  75. <script src="../../js/highcharts.js"></script>
  76. <script src="../../js/modules/exporting.js"></script>
  77. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  78. </body>
  79. </html>