市长热线演示版

index.htm 2.0KB

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. chart: {
  11. type: 'column',
  12. options3d: {
  13. enabled: true,
  14. alpha: 15,
  15. beta: 15,
  16. viewDistance: 25,
  17. depth: 40
  18. },
  19. marginTop: 80,
  20. marginRight: 40
  21. },
  22. title: {
  23. text: 'Total fruit consumption, grouped by gender'
  24. },
  25. xAxis: {
  26. categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
  27. },
  28. yAxis: {
  29. allowDecimals: false,
  30. min: 0,
  31. title: {
  32. text: 'Number of fruits'
  33. }
  34. },
  35. tooltip: {
  36. headerFormat: '<b>{point.key}</b><br>',
  37. pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: {point.y} / {point.stackTotal}'
  38. },
  39. plotOptions: {
  40. column: {
  41. stacking: 'normal',
  42. depth: 40
  43. }
  44. },
  45. series: [{
  46. name: 'John',
  47. data: [5, 3, 4, 7, 2],
  48. stack: 'male'
  49. }, {
  50. name: 'Joe',
  51. data: [3, 4, 4, 2, 5],
  52. stack: 'male'
  53. }, {
  54. name: 'Jane',
  55. data: [2, 5, 6, 2, 1],
  56. stack: 'female'
  57. }, {
  58. name: 'Janet',
  59. data: [3, 0, 4, 4, 3],
  60. stack: 'female'
  61. }]
  62. });
  63. });
  64. </script>
  65. </head>
  66. <body>
  67. <script src="../../js/highcharts.js"></script>
  68. <script src="../../js/highcharts-3d.js"></script>
  69. <script src="../../js/modules/exporting.js"></script>
  70. <div id="container" style="height: 400px"></div>
  71. </body>
  72. </html>