index.htm 1.2 KB

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