index.htm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Highcharts Example</title>
  7. <style type="text/css">
  8. </style>
  9. </head>
  10. <body>
  11. <script src="../../code/highcharts.js"></script>
  12. <script src="../../code/highcharts-3d.js"></script>
  13. <script src="../../code/modules/exporting.js"></script>
  14. <script src="../../code/modules/export-data.js"></script>
  15. <div id="container" style="height: 400px"></div>
  16. <script type="text/javascript">
  17. Highcharts.chart('container', {
  18. chart: {
  19. type: 'pie',
  20. options3d: {
  21. enabled: true,
  22. alpha: 45
  23. }
  24. },
  25. title: {
  26. text: 'Contents of Highsoft\'s weekly fruit delivery'
  27. },
  28. subtitle: {
  29. text: '3D donut in Highcharts'
  30. },
  31. plotOptions: {
  32. pie: {
  33. innerSize: 100,
  34. depth: 45
  35. }
  36. },
  37. series: [{
  38. name: 'Delivered amount',
  39. data: [
  40. ['Bananas', 8],
  41. ['Kiwi', 3],
  42. ['Mixed nuts', 1],
  43. ['Oranges', 6],
  44. ['Apples', 8],
  45. ['Pears', 4],
  46. ['Clementines', 4],
  47. ['Reddish (bag)', 1],
  48. ['Grapes (bunch)', 1]
  49. ]
  50. }]
  51. });
  52. </script>
  53. </body>
  54. </html>