var global_temps = {"GISS":[-0.54,-0.4,-0.36,-0.54,-0.69,-0.74,-0.74,-0.78,-0.54,-0.38,-0.85,-0.61,-0.67,-0.72,-0.74,-0.56,-0.45,-0.38,-0.69,-0.47,-0.34,-0.45,-0.69,-0.83,-0.99,-0.69,-0.6,-0.9,-0.97,-1.05,-0.96,-0.99,-0.81,-0.79,-0.47,-0.38,-0.79,-0.9,-0.65,-0.58,-0.67,-0.56,-0.69,-0.61,-0.69,-0.54,-0.34,-0.56,-0.56,-0.83,-0.45,-0.34,-0.49,-0.7,-0.43,-0.54,-0.45,-0.24,-0.24,-0.24,-0.04,0.03,-0.02,0.05,0.27,0.02,-0.25,-0.27,-0.34,-0.34,-0.51,-0.31,-0.16,-0.04,-0.4,-0.45,-0.54,-0.13,-0.06,-0.13,-0.22,-0.09,-0.13,-0.07,-0.54,-0.36,-0.27,-0.22,-0.31,-0.06,-0.15,-0.34,-0.16,0.09,-0.33,-0.22,-0.4,0.14,-0.06,0.12,0.3,0.41,0.05,0.36,0.11,0.03,0.16,0.41,0.54,0.34,0.61,0.57,0.23,0.25,0.39,0.63,0.45,0.68,0.95,0.57,0.57,0.79,0.95,0.93,0.79,1.06,0.95,1.01,0.77,0.97,1.1,0.9,0.95,1.01,1.17,1.37,1.6],"NCDC":[-0.45,-0.34,-0.34,-0.49,-0.61,-0.63,-0.59,-0.68,-0.5,-0.41,-0.83,-0.68,-0.77,-0.81,-0.72,-0.63,-0.4,-0.45,-0.68,-0.43,-0.34,-0.49,-0.67,-0.83,-0.97,-0.74,-0.59,-0.88,-1.01,-0.99,-0.9,-0.99,-0.81,-0.79,-0.47,-0.34,-0.74,-0.77,-0.58,-0.58,-0.59,-0.49,-0.63,-0.59,-0.67,-0.47,-0.32,-0.49,-0.52,-0.74,-0.38,-0.34,-0.41,-0.65,-0.4,-0.45,-0.41,-0.23,-0.25,-0.23,-0.04,0.14,0.05,0.07,0.31,0.09,-0.22,-0.31,-0.31,-0.32,-0.5,-0.23,-0.16,-0.04,-0.43,-0.45,-0.58,-0.13,-0.02,-0.11,-0.18,-0.09,-0.05,-0.04,-0.49,-0.36,-0.27,-0.25,-0.27,-0.05,-0.16,-0.36,-0.18,0.07,-0.34,-0.22,-0.36,0.13,-0.02,0.18,0.25,0.32,0.11,0.4,0.05,0.02,0.2,0.45,0.45,0.31,0.56,0.5,0.23,0.29,0.4,0.59,0.36,0.7,0.92,0.58,0.54,0.76,0.86,0.88,0.83,0.97,0.88,0.88,0.76,0.92,1.04,0.83,0.9,0.97,1.12,1.4,1.49],"Hadley_CRU4":[-0.4122,-0.3726,-0.3852,-0.5364,-0.7398,-0.702,-0.6624,-0.7596,-0.5616,-0.3114,-0.7506,-0.603,-0.8208,-0.8514,-0.729,-0.702,-0.3312,-0.3744,-0.7434,-0.5202,-0.3564,-0.4698,-0.7272,-0.8676,-0.9342,-0.6786,-0.5112,-0.8388,-0.9198,-0.9414,-0.8838,-0.9774,-0.7866,-0.765,-0.441,-0.2646,-0.6876,-0.8334,-0.5958,-0.4896,-0.4338,-0.3366,-0.5418,-0.4896,-0.5256,-0.3852,-0.189,-0.3744,-0.3708,-0.6264,-0.2412,-0.1494,-0.2412,-0.4806,-0.2286,-0.3096,-0.252,-0.0396,-0.0054,-0.0846,0.0324,0.036,-0.0432,0,0.2682,0.0486,-0.1296,-0.0684,-0.0666,-0.1296,-0.3096,-0.0918,0.0558,0.1746,-0.2322,-0.342,-0.4788,-0.0072,0.0828,0.0306,-0.0882,0.072,0.0288,0.0882,-0.4014,-0.252,-0.1242,-0.1332,-0.2016,0.0558,-0.0486,-0.3366,-0.1206,0.1116,-0.3834,-0.2646,-0.432,0.0828,-0.1134,0.1044,0.1674,0.252,0.0198,0.3474,-0.0234,-0.054,0.0828,0.3438,0.3582,0.2124,0.5328,0.4572,0.1854,0.261,0.3708,0.5778,0.324,0.7002,0.9648,0.5508,0.5274,0.7902,0.8946,0.9144,0.8064,0.9792,0.909,0.8856,0.7092,0.9108,1.0008,0.7578,0.8442,0.9216,1.035,1.368,1.4202],"AVG":[-0.47,-0.37,-0.36,-0.52,-0.68,-0.69,-0.67,-0.74,-0.54,-0.37,-0.81,-0.63,-0.75,-0.79,-0.73,-0.63,-0.39,-0.4,-0.7,-0.47,-0.35,-0.47,-0.69,-0.84,-0.97,-0.7,-0.57,-0.87,-0.97,-0.99,-0.91,-0.99,-0.8,-0.78,-0.46,-0.33,-0.74,-0.84,-0.61,-0.55,-0.56,-0.46,-0.62,-0.57,-0.63,-0.46,-0.29,-0.47,-0.48,-0.73,-0.36,-0.28,-0.38,-0.61,-0.35,-0.43,-0.37,-0.17,-0.16,-0.18,-0.01,0.07,0,0.04,0.28,0.05,-0.2,-0.22,-0.24,-0.27,-0.44,-0.21,-0.09,0.03,-0.35,-0.41,-0.53,-0.09,0,-0.07,-0.16,-0.04,-0.05,-0.01,-0.48,-0.32,-0.22,-0.2,-0.26,-0.02,-0.12,-0.35,-0.15,0.09,-0.35,-0.23,-0.4,0.12,-0.06,0.14,0.24,0.33,0.06,0.37,0.05,0,0.15,0.4,0.45,0.29,0.57,0.51,0.22,0.27,0.39,0.6,0.38,0.7,0.95,0.57,0.55,0.78,0.9,0.91,0.81,1,0.91,0.93,0.75,0.93,1.05,0.83,0.9,0.97,1.11,1.38,1.51]}; var GISS_only = global_temps.GISS; var Hadley_only = global_temps.Hadley_CRU4; var NCDC_only = global_temps.NCDC; var avg_only = global_temps.AVG; $('#highchartIntro').html( '' ); $('#highchartHeader').html( "Global temperatures are rising" ); var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { type: 'column', renderTo: 'highchartContainer', zoomType: document.ontouchstart === undefined ? 'x' : null }, //----------------------------------------------------------------------------------- title: { text: null }, xAxis: { labels: { style: { } }, title: { text: null, style: { } } }, yAxis: { //Primary -- used for temps labels: { style: { } }, title: { text: 'Departure from average (F)', }, }, legend: { // enabled: false }, credits: { enabled: false }, plotOptions: { series:{ point: { events: { mouseOver: function () { // ga('send', 'event', 'climate_chart_indicator', 'mouseover', "global temperature - " + this.series.name + " x:" + this.x + ", y:" + this.y); } } } } }, tooltip: { followTouchMove: false, shared: true, valueDecimals: 2, }, series: [ { name: 'GISS', pointStart: 1880, color: '#F7941D', // borderColor: 'grey', borderWidth: 0, borderRadius: 0, marker: { radius: 0 }, animation: { duration: 6500, }, data: GISS_only, visible: false }, { name: 'NCEI', pointStart: 1880, color: '#FFE6CB', // borderColor: 'grey', borderWidth: 0, borderRadius: 0, marker: { radius: 0 }, animation: { duration: 6500, }, data: NCDC_only, visible: false }, { name: 'Hadley CRU4', pointStart: 1880, color: '#FCBC77', // borderColor: 'grey', borderWidth: 0, borderRadius: 0, marker: { radius: 0 }, animation: { duration: 6500, }, data: Hadley_only, visible: false }, { name: 'Average', pointStart: 1880, // color: '#FCD003', color: '#ED322E', borderColor: 'grey', borderWidth: 0, borderRadius: 0, marker: { radius: 0 }, animation: { duration: 6500, }, data: avg_only } ] }); });