var temp = [19,21,16,24,25,25,25,25,26,26,26,26,26]; var temptime = ['11.16','11.46','12.16','12.46','13.16','13.46','14.16','14.46','15.16','15.46','16.16','16.46','17.15']; var rain = [0,0,0,0,0,0,0,0,0,0,0,0,0]; var raintime = ['11.16','11.46','12.16','12.46','13.16','13.46','14.16','14.46','15.16','15.46','16.16','16.46','17.15']; var wind = [4,2,2,2,2,1,1,2,1,3,3,1,1]; var windtime = ['15.16','15.26','15.36','15.46','15.56','16.06','16.16','16.26','16.36','16.46','16.56','17.06','17.15']; var solar = [0,0,0,54,135,366,281,656,587,269,325,179,209]; var solartime = ['05.16','06.16','07.16','08.16','09.16','10.16','11.16','12.16','13.16','14.16','15.16','16.16','17.15']; var baro = [1016,1016,1016,1016,1016,1016,1016,1016,1016,1016,1016,1016,1016]; var barotime = ['15.16','15.26','15.36','15.46','15.56','16.06','16.16','16.26','16.36','16.46','16.56','17.06','17.15']; $(function() { $('.windd').sparkline([340,20], { type: 'pie', sliceColors: ['#8EA2C6','#ffffff'], offset: 62, chartRangeMin: 0, chartRangeMax: 360, borderWidth: 1, borderColor: '#ffffff', tooltipClassname: 'spark', tooltipPrefix:'Bearing: 142', 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 }); });