市长热线演示版

index.htm 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. chart: {
  11. type: 'column'
  12. },
  13. title: {
  14. text: 'Efficiency Optimization by Branch'
  15. },
  16. xAxis: {
  17. categories: [
  18. 'Seattle HQ',
  19. 'San Francisco',
  20. 'Tokyo'
  21. ]
  22. },
  23. yAxis: [{
  24. min: 0,
  25. title: {
  26. text: 'Employees'
  27. }
  28. },{
  29. title: {
  30. text: 'Profit (millions)'
  31. },
  32. opposite: true
  33. }],
  34. legend: {
  35. shadow: false
  36. },
  37. tooltip: {
  38. shared: true
  39. },
  40. plotOptions: {
  41. column: {
  42. grouping: false,
  43. shadow: false,
  44. borderWidth: 0
  45. }
  46. },
  47. series: [{
  48. name: 'Employees',
  49. color: 'rgba(165,170,217,1)',
  50. data: [150, 73, 20],
  51. pointPadding: 0.3,
  52. pointPlacement: -0.2
  53. }, {
  54. name: 'Employees Optimized',
  55. color: 'rgba(126,86,134,.9)',
  56. data: [140, 90, 40],
  57. pointPadding: 0.4,
  58. pointPlacement: -0.2
  59. },{
  60. name: 'Profit',
  61. color: 'rgba(248,161,63,1)',
  62. data: [183.6, 178.8, 198.5],
  63. tooltip: {
  64. valuePrefix: '$',
  65. valueSuffix: ' M'
  66. },
  67. pointPadding: .3,
  68. pointPlacement: 0.2,
  69. yAxis: 1
  70. },{
  71. name: 'Profit Optimized',
  72. color: 'rgba(186,60,61,.9)',
  73. data: [203.6, 198.8, 208.5],
  74. tooltip: {
  75. valuePrefix: '$',
  76. valueSuffix: ' M'
  77. },
  78. pointPadding: .4,
  79. pointPlacement: 0.2,
  80. yAxis: 1
  81. }]
  82. });
  83. });
  84. </script>
  85. </head>
  86. <body>
  87. <script src="../../js/highcharts.js"></script>
  88. <script src="../../js/modules/exporting.js"></script>
  89. <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
  90. </body>
  91. </html>