You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB

8 years ago
  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://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.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="../../js/highcharts.js"></script>
  50. <script src="../../js/modules/funnel.js"></script>
  51. <script src="../../js/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>