Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 47: | Rivi 47: | ||
var days = ( obs.comparedate.getTime() - cnewyear.getTime() ) / ( 1000*60*60*24 ); | var days = ( obs.comparedate.getTime() - cnewyear.getTime() ) / ( 1000*60*60*24 ); | ||
− | firstW = Math.min( firstW, obs.winter ); lastW = Math. | + | firstW = Math.min( firstW, obs.winter ); lastW = Math.max( lastW, obs.winter ); |
if ( typeof data[ obs.winter ] == 'undefined' ) { data[ obs.winter ] = { 'winter': obs.winter }; } | if ( typeof data[ obs.winter ] == 'undefined' ) { data[ obs.winter ] = { 'winter': obs.winter }; } |