var temp = [4.3,4.4,4.7,5.1,5.6,5.6,4.4,5.6,6.8,5.9,7.2,6.8,6.8];
var temptime = ['07.20','07.50','08.20','08.50','09.20','09.50','10.20','10.50','11.20','11.50','12.20','12.50','13.20'];
var rain = [0.8,0.8,0.8,0.8,0.8,0.8,1,1,1,1,1,1,1];
var raintime = ['07.20','07.50','08.20','08.50','09.20','09.50','10.20','10.50','11.20','11.50','12.20','12.50','13.20'];
var wind = [14,11,12,11,12,12,13,11,12,12,11,12,9];
var windtime = ['11.20','11.30','11.40','11.50','12.00','12.10','12.20','12.30','12.40','12.50','13.00','13.10','13.20'];
var solar = [0,0,0,0,4,11,29,109,96,193,173,438,152];
var solartime = ['01.20','02.20','03.20','04.20','05.20','06.20','07.20','08.20','09.20','10.20','11.20','12.20','13.20'];
var baro = [1013,1012.9,1013,1013.1,1013.1,1014.2,1015.1,1015.4,1016.1,1016.9,1017.1,1017.2,1017.4];
var barotime = ['01.20','02.20','03.20','04.20','05.20','06.20','07.20','08.20','09.20','10.20','11.20','12.20','13.20'];
$(function() {
$('.windd').sparkline([340,20], {
type: 'pie',
sliceColors: ['#5B7102','#ffffff'],
offset: 259,
chartRangeMin: 0,
chartRangeMax: 360,
borderWidth: 1,
borderColor: '#ffffff',
tooltipClassname: 'spark',
tooltipPrefix:'Bearing: 339',
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 });
});