Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 1 008: | Rivi 1 008: | ||
// if full year | // if full year | ||
− | console.log( memo.avgMlist.length ); | + | //console.log( memo.avgMlist.length ); |
if ( memo.avgMlist.length >= 52 ) { | if ( memo.avgMlist.length >= 52 ) { | ||
Rivi 1 016: | Rivi 1 016: | ||
memo.avgHlist = memo.avgHlist.slice( memo.avgHlist.length - memo.gSmoothing/2 - 2 ).concat( memo.avgHlist ).concat( memo.avgHlist.slice( 0, memo.gSmoothing/2 + 2 ) ); | memo.avgHlist = memo.avgHlist.slice( memo.avgHlist.length - memo.gSmoothing/2 - 2 ).concat( memo.avgHlist ).concat( memo.avgHlist.slice( 0, memo.gSmoothing/2 + 2 ) ); | ||
− | console.log( memo.avgMlist ); | + | //console.log( memo.avgMlist ); |
} else { | } else { | ||
Rivi 1 043: | Rivi 1 043: | ||
} | } | ||
+ | |||
+ | console.log( memo.avgMlist ); | ||
+ | console.log( memo.avgMsmooth ); | ||
memo.avgMsmooth = smooth( memo.avgMlist, memo.gSmoothing ); | memo.avgMsmooth = smooth( memo.avgMlist, memo.gSmoothing ); |