index.htm 1.7 KB

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