var chart = Highcharts.chart('container', { chart: { type: 'spline', inverted: true }, title: { text: '大气温度和海拔高度关系' }, subtitle: { text: '根据标准大气模型绘制' }, xAxis: { reversed: false, title: { enabled: true, text: '海拔高度' }, labels: { formatter: function () { return this.value + 'km'; } }, maxPadding: 0.05, showLastLabel: true }, yAxis: { title: { text: '温度' }, labels: { formatter: function () { return this.value + '°'; } }, lineWidth: 2 }, legend: { enabled: false }, tooltip: { headerFormat: '<b>{series.name}</b><br/>', pointFormat: '{point.x} km: {point.y}°C' }, series: [{ name: '温度', data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1], [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]] }] });