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.

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