市长热线演示版

index.htm 2.8KB

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: 'World\'s largest cities per 2014'
  15. },
  16. subtitle: {
  17. text: 'Source: <a href="http://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
  18. },
  19. xAxis: {
  20. type: 'category',
  21. labels: {
  22. rotation: -45,
  23. align: 'right',
  24. style: {
  25. fontSize: '13px',
  26. fontFamily: 'Verdana, sans-serif'
  27. }
  28. }
  29. },
  30. yAxis: {
  31. min: 0,
  32. title: {
  33. text: 'Population (millions)'
  34. }
  35. },
  36. legend: {
  37. enabled: false
  38. },
  39. tooltip: {
  40. pointFormat: 'Population in 2008: <b>{point.y:.1f} millions</b>',
  41. },
  42. series: [{
  43. name: 'Population',
  44. data: [
  45. ['Shanghai', 23.7],
  46. ['Lagos', 16,1],
  47. ['Instanbul', 14.2],
  48. ['Karachi', 14.0],
  49. ['Mumbai', 12.5],
  50. ['Moscow', 12.1],
  51. ['São Paulo', 11.8],
  52. ['Beijing', 11.7],
  53. ['Guangzhou', 11.1],
  54. ['Delhi', 11.1],
  55. ['Shenzhen', 10.5],
  56. ['Seoul', 10.4],
  57. ['Jakarta', 10.0],
  58. ['Kinshasa', 9.3],
  59. ['Tianjin', 9.3],
  60. ['Tokyo', 9.0],
  61. ['Cairo', 8.9],
  62. ['Dhaka', 8.9],
  63. ['Mexico City', 8.9],
  64. ['Lima', 8.9]
  65. ],
  66. dataLabels: {
  67. enabled: true,
  68. rotation: -90,
  69. color: '#FFFFFF',
  70. align: 'right',
  71. x: 4,
  72. y: 10,
  73. style: {
  74. fontSize: '13px',
  75. fontFamily: 'Verdana, sans-serif',
  76. textShadow: '0 0 3px black'
  77. }
  78. }
  79. }]
  80. });
  81. });
  82. </script>
  83. </head>
  84. <body>
  85. <script src="../../js/highcharts.js"></script>
  86. <script src="../../js/modules/exporting.js"></script>
  87. <div id="container" style="min-width: 500px; height: 400px; margin: 0 auto"></div>
  88. </body>
  89. </html>