var temp = [17,16,16,16,16,16,16,16,16,16,16,16,15]; var temptime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var rain = [20,21,21,0,21,0,0,0,0,0,0,0,0]; var raintime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var wind = [2,1,2,0,1,2,1,1,2,2,2,2,2]; var windtime = ['01.31','01.41','01.51','02.01','02.11','02.21','02.31','02.41','02.51','03.01','03.11','03.21','03.30']; var gust = [3,5,5,0,6,6,2,10,6,3,3,3,3]; var gusttime = ['01.31','01.41','01.51','02.01','02.11','02.21','02.31','02.41','02.51','03.01','03.11','03.21','03.30']; var winddir = [0,220,0,0,220,222,0,272,269,269,0,269,269]; var winddirtime = ['01.31','01.41','01.51','02.01','02.11','02.21','02.31','02.41','02.51','03.01','03.11','03.21','03.30']; var baro = [1018,1018,1018,1018,1018,1018,1017,1017,1017,1017,1017,1017,1017]; var barotime = ['01.31','01.41','01.51','02.01','02.11','02.21','02.31','02.41','02.51','03.01','03.11','03.21','03.30']; var chill = [17,16,16,16,16,16,16,16,16,16,16,16,15]; var chilltime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var rain = [20,21,21,0,21,0,0,0,0,0,0,0,0]; var raintime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var dew = [16,16,0,16,16,16,16,16,16,16,15,15,15]; var dewtime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var heat = [17,16,16,16,16,16,16,16,16,16,16,16,15]; var heattime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; var hum = [96,97,97,97,97,97,97,97,97,97,97,98,97]; var humtime = ['21.31','22.01','22.31','23.01','23.31','00.01','00.31','01.01','01.31','02.01','02.31','03.01','03.30']; $(function() { $('.windd').sparkline([340,20], { type: 'pie', sliceColors: ['#F0F8FF','#3173B1'], offset: 280, chartRangeMin: 0, chartRangeMax: 360, borderWidth: 1, borderColor: '#3173B1', tooltipClassname: 'spark', tooltipPrefix:'Bearing: 000', tooltipSuffix: '°', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Avg. Wind Dir.' + '
' + ' Last 3 hours' }); }); $(function() { $('.temp').sparkline(temptime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Temperature Today.' }); $('.temp').sparkline(temp, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'temp: ', tooltipSuffix: " °C", width: 60 }); }); $(function() { $('.heat').sparkline(heattime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Heat Index Today.' }); $('.heat').sparkline(heat, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'heat: ', tooltipSuffix: " °C", width: 60 }); }); $(function() { $('.hum').sparkline(humtime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Humidity Today.' }); $('.hum').sparkline(hum, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'hum: ', tooltipSuffix: '%', width: 60 }); }); $(function() { $('.dew').sparkline(dewtime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Dew Point Today.' }); $('.dew').sparkline(dew, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'dew: ', tooltipSuffix: " °C", width: 60 }); }); $(function() { $('.chill').sparkline(chilltime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Wind Chill Today.' }); $('.chill').sparkline(chill, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Chill: ', tooltipSuffix: " °C", width: 60 }); }); $(function() { $('.wind').sparkline(windtime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipChartTitle: 'Wind Speed Today.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Time: ' }); $('.wind').sparkline(wind, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Wind: ', tooltipSuffix: " km/h", width: 60, }); }); $(function() { $('.gust').sparkline(gusttime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipChartTitle: 'Gust Speed Today.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Time: ' }); $('.gust').sparkline(gust, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Gust: ', tooltipSuffix: " km/h", width: 60, }); }); $(function() { $('.winddir').sparkline(winddirtime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipChartTitle: 'Wind Direction Today.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Time: ' }); $('.winddir').sparkline(winddir, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Wind: ', tooltipSuffix: " W", width: 60, }); }); $(function() { $('.rain').sparkline(raintime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipPrefix: 'Time: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Rainfall Today.' }); $('.rain').sparkline(rain, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Rain: ', tooltipSuffix: " mm", width: 60 }); }); $(function() { $('.baro').sparkline(barotime, { type: 'line', lineColor: '#F0F8FF', fillColor: '#F0F8FF', spotColor: '#F0F8FF', minSpotColor: '#F0F8FF', maxSpotColor: '#F0F8FF', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 60, tooltipClassname: 'spark', tooltipChartTitle: 'Barometer Today.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Time: ' }); $('.baro').sparkline(baro, { composite: true, type: 'line', lineColor: '#3173B1', fillColor: '#F0F8FF', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', numberDigitGroupCount: 6, tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Baro: ', tooltipSuffix: " hPa", width: 60 }); });