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.

64 lines
1.5 KiB

9 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. #container {
  9. height: 400px;
  10. min-width: 310px;
  11. max-width: 800px;
  12. margin: 0 auto;
  13. }
  14. </style>
  15. <script type="text/javascript">
  16. $(function () {
  17. $('#container').highcharts({
  18. chart: {
  19. type: 'column',
  20. margin: 75,
  21. options3d: {
  22. enabled: true,
  23. alpha: 10,
  24. beta: 25,
  25. depth: 70
  26. }
  27. },
  28. title: {
  29. text: '3D chart with null values'
  30. },
  31. subtitle: {
  32. text: 'Notice the difference between a 0 value and a null point'
  33. },
  34. plotOptions: {
  35. column: {
  36. depth: 25
  37. }
  38. },
  39. xAxis: {
  40. categories: Highcharts.getOptions().lang.shortMonths
  41. },
  42. yAxis: {
  43. title: {
  44. text: null
  45. }
  46. },
  47. series: [{
  48. name: 'Sales',
  49. data: [2, 3, null, 4, 0, 5, 1, 4, 6, 3]
  50. }]
  51. });
  52. });
  53. </script>
  54. </head>
  55. <body>
  56. <script src="../../js/highcharts.js"></script>
  57. <script src="../../js/highcharts-3d.js"></script>
  58. <script src="../../js/modules/exporting.js"></script>
  59. <div id="container" style="height: 400px"></div>
  60. </body>
  61. </html>