-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.5.php
257 lines (232 loc) · 10.7 KB
/
4.5.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<div class="container" style="margin-top:30px">
<div class="row">
<div class="col-sm-12">
<h1>Figure: <?= $get_figure ?></h1>
<div id="chartdiv"></div>
</div>
</div>
</div>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script>
var rcp26ranges10 = [
["1986-2005", 10, 10],
["2016-2035", 6.95175, 8.226699],
["2046-2065", 5.94626, 7.592641],
["2081-2100", 6.138349, 7.540551]
],
rcp26averages10 = [
["1986-2005", 10],
["2016-2035", 7.370648],
["2046-2065", 6.813833],
["2081-2100", 7.032315]
],
rcp26ranges20 = [
["1986-2005", 20, 20],
["2016-2035", 13.20029, 15.87905],
["2046-2065", 10.7532, 14.46925],
["2081-2100", 10.95954, 14.59064]
],
rcp26averages20 = [
["1986-2005", 20],
["2016-2035", 14.26733],
["2046-2065", 13.21746],
["2081-2100", 12.9498]
],
rcp26ranges50 = [
["1986-2005", 50, 50],
["2016-2035", 30.17702, 37.1375],
["2046-2065", 24.14273, 33.99439],
["2081-2100", 23.47608, 36.06142]
],
rcp26averages50 = [
["1986-2005", 50],
["2016-2035", 34.66853],
["2046-2065", 30.65203],
["2081-2100", 30.66176]
];
Highcharts.chart('chartdiv', {
chart: {
zoomType: 'xy'
},
title: {
text: 'Warming'
},
xAxis: [{
categories: ['OBS', 'OBS*', 'ALL', 'ANT', 'NAT']
}],
yAxis: [{ // Primary yAxis
labels: {
format: '{value} °C',
style: {
color: Highcharts.getOptions().colors[1]
}
},
title: {
text: 'Attributable Warming (°C)',
style: {
color: Highcharts.getOptions().colors[1]
}
}
}],
plotOptions: {
column: {
colorByPoint: true
}
},
colors: [
'#333333',
'#CCCCCC',
'#35FF34',
'#FF3333',
'#3232FF'
],
tooltip: {
shared: true,
valueDecimals: 2,
},
series: [{
// Annual
// OBS 1.67804571428571 1.14900728706857 2.20708414150286
// OBS* 1.19734071428571 0.49352286625715 1.90115856231428
// ALL 1.46658150344396 1.08455321189681 1.85326885602898
// ANT 1.04561803200548 0.58902332937622 1.48731018400219
// NAT 0.194267919001627 0.11347697849129 0.280985670254518
name: 'Annual',
type: 'column',
data: [1.67804571428571, 1.19734071428571, 1.46658150344396, 1.04561803200548, 0.194267919001627],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Annual',
type: 'errorbar',
data: [[1.14900728706857, 2.20708414150286], [0.49352286625715, 1.90115856231428], [1.08455321189681, 1.85326885602898], [0.58902332937622, 1.48731018400219], [0.11347697849129, 0.280985670254518]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Winter
// OBS 2.80193928571429 1.48086387514679 4.12301469628178
// OBS* 2.13438368199872 1.55666835073951 2.71209901325793
// ALL 2.13438368199872 1.38161086908473 2.90294183445692
// ANT 1.94958450964745 0.983172391330015 2.94275142361103
// NAT 0.181858289321945 -0.14404061472086 0.503392223631135
name: 'Winter',
type: 'column',
data: [2.80193928571429, 2.13438368199872, 2.13438368199872, 1.94958450964745, 0.181858289321945],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Winter',
type: 'errorbar',
data: [[1.48086387514679, 4.12301469628178], [1.55666835073951, 2.71209901325793], [1.38161086908473, 2.90294183445692], [0.983172391330015, 2.94275142361103], [-0.14404061472086, 0.503392223631135]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Summer
// OBS 1.107345 0.809727160096144 1.40496283990386
// OBS* 1.09064571428571 0.799621758616171 1.38166966995526
// ALL 0.888343868965028 0.584255125301678 1.19447990454787
// ANT 0.973548070460549 0.617229872108493 1.33648032920321
// NAT 0.0038183726601262 -0.0046386666700428 0.0121145423805682
name: 'Summer',
type: 'column',
data: [1.107345, 1.09064571428571, 0.888343868965028, 0.973548070460549, 0.0038183726601262],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Summer',
type: 'errorbar',
data: [[0.809727160096144,1.40496283990386], [0.799621758616171,1.38166966995526], [0.584255125301678,1.19447990454787], [0.617229872108493,1.33648032920321], [-0.0046386666700428,0.0121145423805682]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Highest daily maximum
// OBS 0.797329285714286 0.352946438765899 1.24171213266267
// OBS* 0.823844285714286 0.357565883485128 1.29012268794344
// ALL 0.38786107272507 0.0615655887481981 0.715688917851221
// ANT 0.715501405537392 0.200529779881972 1.24315928814507
// NAT 0.0020192693271507 -0.0015778352119725 0.00585439105641839
name: 'Highest Daily Maximum',
type: 'column',
data: [0.797329285714286, 0.823844285714286, 0.38786107272507, 0.715501405537392, 0.0020192693271507],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Highest Daily Maximum',
type: 'errorbar',
data: [[0.352946438765899,1.24171213266267], [0.357565883485128,1.29012268794344], [0.0615655887481981,0.715688917851221], [0.200529779881972,1.24315928814507], [-0.0015778352119725,0.00585439105641839]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Highest daily minimum
// OBS 1.18180571428571 0.813417871673421 1.55019355689801
// OBS* 1.07502214285714 0.67419532593219 1.4758489597821
// ALL 0.876718868989024 0.533111491806334 1.22267413795959
// ANT 1.00585158931529 0.645535678549329 1.37696078878404
// NAT -0.0139123162949569 -0.0501214675930314 0.020346968512892
name: 'Highest Daily Minimum',
type: 'column',
data: [1.18180571428571, 1.07502214285714, 0.876718868989024, 1.00585158931529, -0.0139123162949569],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Highest Daily Minimum',
type: 'errorbar',
data: [[0.813417871673421,1.55019355689801], [0.67419532593219,1.4758489597821], [0.533111491806334,1.22267413795959], [0.645535678549329,1.37696078878404], [-0.0501214675930314,0.020346968512892]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Lowest daily maximum
// OBS 3.07828714285714 1.19862944791913 4.95794483779516
// OBS* 2.71818214285714 0.848094478632175 4.58826980708211
// ALL 2.78535232669779 1.55800959210553 4.04284135965442
// ANT 2.8479112581361 1.54055723954542 4.18568596401635
// NAT -0.203695568310347 -0.322991742719822 -0.097073559965885
name: 'Lowest Daily Maximum',
type: 'column',
data: [3.07828714285714, 2.71818214285714, 2.78535232669779, 2.8479112581361, -0.203695568310347],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Lowest Daily Maximum',
type: 'errorbar',
data: [[1.19862944791913,4.95794483779516], [0.848094478632175,4.58826980708211], [1.55800959210553,4.04284135965442], [1.54055723954542,4.18568596401635], [-0.322991742719822,-0.097073559965885]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
},{
// Lowest daily minimum
// OBS 3.18757142857143 1.74508590994268 4.63005694720017
// OBS* 2.68810785714286 1.18076984902053 4.19544586526518
// ALL 2.75299734198629 1.51103889614627 4.02025915766235
// ANT 2.7983188136724 1.5065943748015 4.11437825630278
// NAT -0.13772949586009 -0.235222945405484 -0.0471883818662989
name: 'Lowest Daily Minimum',
type: 'column',
data: [3.18757142857143, 2.68810785714286, 2.75299734198629, 2.7983188136724, -0.13772949586009],
tooltip: {
pointFormat: '<span style="font-weight: bold; color: {series.color}">{series.name}</span>: <b>{point.y:.1f} °C</b> '
}
}, {
name: 'Lowest Daily Minimum',
type: 'errorbar',
data: [[1.74508590994268,4.63005694720017], [1.18076984902053,4.19544586526518], [1.51103889614627,4.02025915766235], [1.5065943748015,4.11437825630278], [-0.235222945405484,-0.0471883818662989]],
tooltip: {
pointFormat: '(Range: {point.low}-{point.high} °C)<br/>'
}
}]
});
</script>