index.htm 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/modules/exporting.js"></script>
  13. <script src="../../code/modules/export-data.js"></script>
  14. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  15. <script type="text/javascript">
  16. Highcharts.chart('container', {
  17. chart: {
  18. type: 'column'
  19. },
  20. title: {
  21. text: 'Column chart with negative values'
  22. },
  23. xAxis: {
  24. categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
  25. },
  26. credits: {
  27. enabled: false
  28. },
  29. series: [{
  30. name: 'John',
  31. data: [5, 3, 4, 7, 2]
  32. }, {
  33. name: 'Jane',
  34. data: [2, -2, -3, 2, 1]
  35. }, {
  36. name: 'Joe',
  37. data: [3, 4, 4, -2, 5]
  38. }]
  39. });
  40. </script>
  41. </body>
  42. </html>