var temp = [12,12,12,14,14,14,15,15,16,16,16,17,17]; var temptime = ['10.36','11.06','11.36','12.06','12.36','13.06','13.36','14.06','14.36','15.06','15.36','16.06','16.35']; var rain = [4,4,4,0,6,6,6,7,8,9,10,10,11]; var raintime = ['10.36','11.06','11.36','12.06','12.36','13.06','13.36','14.06','14.36','15.06','15.36','16.06','16.35']; var wind = [5,5,5,6,6,6,6,6,6,8,7,5,7]; var windtime = ['14.36','14.46','14.56','15.06','15.16','15.26','15.36','15.46','15.56','16.06','16.16','16.26','16.35']; var solar = [0,0,0,0,16,44,95,123,167,179,146,160,134]; var solartime = ['04.36','05.36','06.36','07.36','08.36','09.36','10.36','11.36','12.36','13.36','14.36','15.36','16.35']; var baro = [1021,1021,1021,1021,1021,1021,1021,1021,1021,1022,1022,1022,1022]; var barotime = ['14.36','14.46','14.56','15.06','15.16','15.26','15.36','15.46','15.56','16.06','16.16','16.26','16.35']; $(function() { $('.windd').sparkline([340,20], { type: 'pie', sliceColors: ['#8EA2C6','#ffffff'], offset: 156, chartRangeMin: 0, chartRangeMax: 360, borderWidth: 1, borderColor: '#ffffff', tooltipClassname: 'spark', tooltipPrefix:'Bearing: 236', 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 }); });