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.

65 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. ${demo.css}
  9. </style>
  10. <script type="text/javascript">
  11. $(function () {
  12. $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=range.json&callback=?', function (data) {
  13. $('#container').highcharts({
  14. chart: {
  15. type: 'arearange',
  16. zoomType: 'x'
  17. },
  18. title: {
  19. text: 'Temperature variation by day'
  20. },
  21. xAxis: {
  22. type: 'datetime'
  23. },
  24. yAxis: {
  25. title: {
  26. text: null
  27. }
  28. },
  29. tooltip: {
  30. crosshairs: true,
  31. shared: true,
  32. valueSuffix: '°C'
  33. },
  34. legend: {
  35. enabled: false
  36. },
  37. series: [{
  38. name: 'Temperatures',
  39. data: data
  40. }]
  41. });
  42. });
  43. });
  44. </script>
  45. </head>
  46. <body>
  47. <script src="../../js/highcharts.js"></script>
  48. <script src="../../js/highcharts-more.js"></script>
  49. <script src="../../js/modules/exporting.js"></script>
  50. <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
  51. </body>
  52. </html>