var temp = [21,21,18,21,21,20,20,19,19,19,19,18,18]; var temptime = ['18.21','18.51','19.21','19.51','20.21','20.51','21.21','21.51','22.21','22.51','23.21','23.51','00.20']; var rain = [11,11,11,0,11,11,11,11,11,11,11,11,0]; var raintime = ['18.21','18.51','19.21','19.51','20.21','20.51','21.21','21.51','22.21','22.51','23.21','23.51','00.20']; var wind = [2,2,2,2,6,6,4,3,4,4,3,3,4]; var windtime = ['22.21','22.31','22.41','22.51','23.01','23.11','23.21','23.31','23.41','23.51','00.01','00.11','00.20']; var solar = [12,51,278,155,278,649,165,218,18,0,0,0,0]; var solartime = ['12.21','13.21','14.21','15.21','16.21','17.21','18.21','19.21','20.21','21.21','22.21','23.21','00.20']; var baro = [1009,1009,1009,1009,1009,1009,1010,1009,1010,1010,1010,1010,1010]; var barotime = ['22.21','22.31','22.41','22.51','23.01','23.11','23.21','23.31','23.41','23.51','00.01','00.11','00.20']; $(function() { $('.windd').sparkline([340,20], { type: 'pie', sliceColors: ['#8EA2C6','#ffffff'], offset: 152, chartRangeMin: 0, chartRangeMax: 360, borderWidth: 1, borderColor: '#ffffff', tooltipClassname: 'spark', tooltipPrefix:'Bearing: 232', 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 }); });