市长热线演示版

index.htm 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: 'pie',
  12. options3d: {
  13. enabled: true,
  14. alpha: 45
  15. }
  16. },
  17. title: {
  18. text: 'Contents of Highsoft\'s weekly fruit delivery'
  19. },
  20. subtitle: {
  21. text: '3D donut in Highcharts'
  22. },
  23. plotOptions: {
  24. pie: {
  25. innerSize: 100,
  26. depth: 45
  27. }
  28. },
  29. series: [{
  30. name: 'Delivered amount',
  31. data: [
  32. ['Bananas', 8],
  33. ['Kiwi', 3],
  34. ['Mixed nuts', 1],
  35. ['Oranges', 6],
  36. ['Apples', 8],
  37. ['Pears', 4],
  38. ['Clementines', 4],
  39. ['Reddish (bag)', 1],
  40. ['Grapes (bunch)', 1]
  41. ]
  42. }]
  43. });
  44. });
  45. </script>
  46. </head>
  47. <body>
  48. <script src="../../js/highcharts.js"></script>
  49. <script src="../../js/highcharts-3d.js"></script>
  50. <script src="../../js/modules/exporting.js"></script>
  51. <div id="container" style="height: 400px"></div>
  52. </body>
  53. </html>