市长热线演示版

index.htm 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: 'pyramid',
  12. marginRight: 100
  13. },
  14. title: {
  15. text: 'Sales pyramid',
  16. x: -50
  17. },
  18. plotOptions: {
  19. series: {
  20. dataLabels: {
  21. enabled: true,
  22. format: '<b>{point.name}</b> ({point.y:,.0f})',
  23. color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
  24. softConnector: true
  25. }
  26. }
  27. },
  28. legend: {
  29. enabled: false
  30. },
  31. series: [{
  32. name: 'Unique users',
  33. data: [
  34. ['Website visits', 15654],
  35. ['Downloads', 4064],
  36. ['Requested price list', 1987],
  37. ['Invoice sent', 976],
  38. ['Finalized', 846]
  39. ]
  40. }]
  41. });
  42. });
  43. </script>
  44. </head>
  45. <body>
  46. <script src="../../js/highcharts.js"></script>
  47. <script src="../../js/modules/funnel.js"></script>
  48. <script src="../../js/modules/exporting.js"></script>
  49. <div id="container" style="min-width: 410px; max-width: 600px; height: 400px; margin: 0 auto"></div>
  50. </body>
  51. </html>