var temp = [11,12,9,13,14,14,10,12,11,11,10,10,9]; var temptime = ['15.16','15.46','16.16','16.46','17.16','17.46','18.16','18.46','19.16','19.46','20.16','20.46','21.15']; var rain = [0,0,0,0,0,0,1,1,1,1,1,1,1]; var raintime = ['15.16','15.46','16.16','16.46','17.16','17.46','18.16','18.46','19.16','19.46','20.16','20.46','21.15']; var wind = [8,9,9,7,6,3,3,3,4,3,2,0,0]; var windtime = ['19.16','19.26','19.36','19.46','19.56','20.06','20.16','20.26','20.36','20.46','20.56','21.06','21.15']; var solar = [91,199,436,394,585,524,179,325,469,301,113,35,0]; var solartime = ['09.16','10.16','11.16','12.16','13.16','14.16','15.16','16.16','17.16','18.16','19.16','20.16','21.15']; var baro = [1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004,1004]; var barotime = ['19.16','19.26','19.36','19.46','19.56','20.06','20.16','20.26','20.36','20.46','20.56','21.06','21.15']; $(function() { $('.windd').sparkline([340,20], { type: 'pie', sliceColors: ['#8EA2C6','#ffffff'], offset: 129, chartRangeMin: 0, chartRangeMax: 360, borderWidth: 1, borderColor: '#ffffff', tooltipClassname: 'spark', tooltipPrefix:'Bearing: 209', tooltipSuffix: '°', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Avg. Wind Dir.' + '
' + ' Last 3 hours' }); }); $(function() { $('.temp').sparkline(temptime, { type: 'line', lineColor: '#8EA2C6', fillColor: '#8EA2C6', spotColor: '#8EA2C6', minSpotColor: '#8EA2C6', maxSpotColor: '#8EA2C6', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 90, height:16, tooltipClassname: 'spark', tooltipPrefix: 'Heure: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Temperature .' }); $('.temp').sparkline(temp, { composite: true, type: 'line', lineColor: '#ffffff', fillColor: '#8EA2C6', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Temp: ', tooltipSuffix: " °C", width: 90, height:16 }); }); $(function() { $('.wind').sparkline(windtime, { type: 'line', lineColor: '#8EA2C6', fillColor: '#8EA2C6', spotColor: '#8EA2C6', minSpotColor: '#8EA2C6', maxSpotColor: '#8EA2C6', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 90, height:16, tooltipClassname: 'spark', tooltipChartTitle: 'Vent.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Heure: ' }); $('.wind').sparkline(wind, { composite: true, type: 'line', lineColor: '#ffffff', fillColor: '#8EA2C6', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Vitesse: ', tooltipSuffix: " km/h", width: 90, height:16 }); }); $(function() { $('.rain').sparkline(raintime, { type: 'line', lineColor: '#8EA2C6', fillColor: '#8EA2C6', spotColor: '#8EA2C6', minSpotColor: '#8EA2C6', maxSpotColor: '#8EA2C6', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 90, height:16, tooltipClassname: 'spark', tooltipPrefix: 'Heure: ', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipChartTitle: 'Pluie.' }); $('.rain').sparkline(rain, { composite: true, type: 'line', lineColor: '#ffffff', fillColor: '#8EA2C6', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Pluie: ', tooltipSuffix: " mm", width: 90, height:16 }); }); $(function() { $('.solar').sparkline(solartime, { type: 'line', lineColor: '#8EA2C6', fillColor: '#8EA2C6', spotColor: '#8EA2C6', minSpotColor: '#8EA2C6', maxSpotColor: '#8EA2C6', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 90, height:16, tooltipClassname: 'spark', tooltipChartTitle: 'Solaire.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Heure: ' }); $('.solar').sparkline(solar, { composite: true, type: 'line', lineColor: '#ffffff', fillColor: '#8EA2C6', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Solaire: ', tooltipSuffix: " w/m²", width: 90, height:16 }); }); $(function() { $('.baro').sparkline(barotime, { type: 'line', lineColor: '#8EA2C6', fillColor: '#8EA2C6', spotColor: '#8EA2C6', minSpotColor: '#8EA2C6', maxSpotColor: '#8EA2C6', numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));}, width: 90, height:16, tooltipClassname: 'spark', tooltipChartTitle: 'Pression.', tooltipFormat:' {{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Heure: ' }); $('.baro').sparkline(baro, { composite: true, type: 'line', lineColor: '#ffffff', fillColor: '#8EA2C6', spotColor: '#00007f', minSpotColor: '#007fff', maxSpotColor: '#ff0000', numberDigitGroupCount: 6, tooltipClassname: 'spark', tooltipFormat:'{{prefix}}{{y}}{{suffix}}', tooltipPrefix: 'Pression: ', tooltipSuffix: " hPa", width: 90, height:16 }); });