市长热线演示版

index.htm 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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: 'bar'
  12. },
  13. title: {
  14. text: 'Stacked bar chart'
  15. },
  16. xAxis: {
  17. categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
  18. },
  19. yAxis: {
  20. min: 0,
  21. title: {
  22. text: 'Total fruit consumption'
  23. }
  24. },
  25. legend: {
  26. reversed: true
  27. },
  28. plotOptions: {
  29. series: {
  30. stacking: 'normal'
  31. }
  32. },
  33. series: [{
  34. name: 'John',
  35. data: [5, 3, 4, 7, 2]
  36. }, {
  37. name: 'Jane',
  38. data: [2, 2, 3, 2, 1]
  39. }, {
  40. name: 'Joe',
  41. data: [3, 4, 4, 2, 5]
  42. }]
  43. });
  44. });
  45. </script>
  46. </head>
  47. <body>
  48. <script src="../../js/highcharts.js"></script>
  49. <script src="../../js/modules/exporting.js"></script>
  50. <div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
  51. </body>
  52. </html>