index.htm 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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; max-width: 600px; margin: 0 auto"></div>
  15. <script type="text/javascript">
  16. Highcharts.chart('container', {
  17. chart: {
  18. type: 'spline',
  19. inverted: true
  20. },
  21. title: {
  22. text: 'Atmosphere Temperature by Altitude'
  23. },
  24. subtitle: {
  25. text: 'According to the Standard Atmosphere Model'
  26. },
  27. xAxis: {
  28. reversed: false,
  29. title: {
  30. enabled: true,
  31. text: 'Altitude'
  32. },
  33. labels: {
  34. format: '{value} km'
  35. },
  36. maxPadding: 0.05,
  37. showLastLabel: true
  38. },
  39. yAxis: {
  40. title: {
  41. text: 'Temperature'
  42. },
  43. labels: {
  44. format: '{value}°'
  45. },
  46. lineWidth: 2
  47. },
  48. legend: {
  49. enabled: false
  50. },
  51. tooltip: {
  52. headerFormat: '<b>{series.name}</b><br/>',
  53. pointFormat: '{point.x} km: {point.y}°C'
  54. },
  55. plotOptions: {
  56. spline: {
  57. marker: {
  58. enable: false
  59. }
  60. }
  61. },
  62. series: [{
  63. name: 'Temperature',
  64. data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
  65. [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
  66. }]
  67. });
  68. </script>
  69. </body>
  70. </html>