var temp = [19.1,19.6,20.2,20.6,20.6,20.4,20.3,20.6,19.4,19,18.8,17.9,17.4];
var temptime = ['12.15','12.45','13.15','13.45','14.15','14.45','15.15','15.45','16.15','16.45','17.15','17.45','18.15'];
var rain = [0,0,0,0,0,0,0,0,0,0,0,0,0];
var raintime = ['12.15','12.45','13.15','13.45','14.15','14.45','15.15','15.45','16.15','16.45','17.15','17.45','18.15'];
var wind = [6,6,7,3,6,4,4,4,3,4,3,4,4];
var windtime = ['16.15','16.25','16.35','16.45','16.55','17.05','17.15','17.25','17.35','17.45','17.55','18.05','18.15'];
var solar = [54,207,473,536,552,674,758,663,716,641,424,148,127];
var solartime = ['06.15','07.15','08.15','09.15','10.15','11.15','12.15','13.15','14.15','15.15','16.15','17.15','18.15'];
var baro = [1020.7,1020.7,1020.9,1020.8,1020.5,1020.3,1020.6,1020.1,1019.9,1019.9,1019.8,1019.6,1019.5];
var barotime = ['06.15','07.15','08.15','09.15','10.15','11.15','12.15','13.15','14.15','15.15','16.15','17.15','18.15'];
$(function() {
$('.windd').sparkline([340,20], {
type: 'pie',
sliceColors: ['#5B7102','#ffffff'],
offset: 192,
chartRangeMin: 0,
chartRangeMax: 360,
borderWidth: 1,
borderColor: '#ffffff',
tooltipClassname: 'spark',
tooltipPrefix:'Bearing: 272',
tooltipSuffix: '°',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipChartTitle: 'Avg. Wind Dir.' + '
' + ' Last 3 hours'
});
});
$(function() {
$('.temp').sparkline(temptime, {
type: 'line',
lineColor: '#5B7102',
fillColor: '#5B7102',
spotColor: '#5B7102',
minSpotColor: '#5B7102',
maxSpotColor: '#5B7102',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
height:16,
tooltipClassname: 'spark',
tooltipPrefix: 'Time: ',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipChartTitle: 'Temperature Today.'
});
$('.temp').sparkline(temp, {
composite: true,
type: 'line',
lineColor: '#ffffff',
fillColor: '#5B7102',
spotColor: '#ffffff',
minSpotColor: '#55a9fd',
maxSpotColor: '#f23434',
tooltipClassname: 'spark',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Temp: ',
tooltipSuffix: " °C",
width: 60,
height:16 });
});
$(function() {
$('.wind').sparkline(windtime, {
type: 'line',
lineColor: '#5B7102',
fillColor: '#5B7102',
spotColor: '#5B7102',
minSpotColor: '#5B7102',
maxSpotColor: '#5B7102',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
height:16,
tooltipClassname: 'spark',
tooltipChartTitle: 'Wind Speed Today.',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Time: '
});
$('.wind').sparkline(wind, {
composite: true,
type: 'line',
lineColor: '#ffffff',
fillColor: '#5B7102',
spotColor: '#ffffff',
minSpotColor: '#55a9fd',
maxSpotColor: '#f23434',
tooltipClassname: 'spark',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Wind: ',
tooltipSuffix: " kts",
width: 60,
height:16
});
});
$(function() {
$('.rain').sparkline(raintime, {
type: 'line',
lineColor: '#5B7102',
fillColor: '#5B7102',
spotColor: '#5B7102',
minSpotColor: '#5B7102',
maxSpotColor: '#5B7102',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
height:16,
tooltipClassname: 'spark',
tooltipPrefix: 'Time: ',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipChartTitle: 'Rainfall Today.'
});
$('.rain').sparkline(rain, {
composite: true,
type: 'line',
lineColor: '#ffffff',
fillColor: '#5B7102',
spotColor: '#ffffff',
minSpotColor: '#55a9fd',
maxSpotColor: '#f23434',
tooltipClassname: 'spark',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Rain: ',
tooltipSuffix: " mm",
width: 60,
height:16
});
});
$(function() {
$('.solar').sparkline(solartime, {
type: 'line',
lineColor: '#5B7102',
fillColor: '#5B7102',
spotColor: '#5B7102',
minSpotColor: '#5B7102',
maxSpotColor: '#5B7102',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
height:16,
tooltipClassname: 'spark',
tooltipChartTitle: 'Solar Today.',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Time: '
});
$('.solar').sparkline(solar, {
composite: true,
type: 'line',
lineColor: '#ffffff',
fillColor: '#5B7102',
spotColor: '#ffffff',
minSpotColor: '#55a9fd',
maxSpotColor: '#f23434',
tooltipClassname: 'spark',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Sun: ',
tooltipSuffix: " w/m²",
width: 60,
height:16 });
});
$(function() {
$('.baro').sparkline(barotime, {
type: 'line',
lineColor: '#5B7102',
fillColor: '#5B7102',
spotColor: '#5B7102',
minSpotColor: '#5B7102',
maxSpotColor: '#5B7102',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
height:16,
tooltipClassname: 'spark',
tooltipChartTitle: 'Barometer Today.',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Time: '
});
$('.baro').sparkline(baro, {
composite: true,
type: 'line',
lineColor: '#ffffff',
fillColor: '#5B7102',
spotColor: '#ffffff',
minSpotColor: '#55a9fd',
maxSpotColor: '#f23434',
numberDigitGroupCount: 6,
tooltipClassname: 'spark',
tooltipFormat:'{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Baro: ',
tooltipSuffix: " mb",
width: 60,
height:16 });
});