index.htm 1.3 KB

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