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.

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