953f2694aa246af311c6f94e40c278353a125d6f.svn-base 1.6 KB

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