Ero sivun ”Widget:JwObsCharts2” versioiden välillä
Järvi-meriwikistä
Rivi 354: | Rivi 354: | ||
so.waterbody = memo.waterbody; | so.waterbody = memo.waterbody; | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
memo.jw.loadObses( so, function( o ) { | memo.jw.loadObses( so, function( o ) { | ||
− | |||
memo.obses = memo.jw.obs; | memo.obses = memo.jw.obs; | ||
drawVisualization(memo); | drawVisualization(memo); | ||
Rivi 449: | Rivi 445: | ||
// create data | // create data | ||
obs.data = JSON.parse( obs.printouts.DataJSON ); | obs.data = JSON.parse( obs.printouts.DataJSON ); | ||
− | |||
if ( obs.data.unit == 'cm' && i18n[memo.obscode]['unit'] == 'm' ) { | if ( obs.data.unit == 'cm' && i18n[memo.obscode]['unit'] == 'm' ) { | ||
Rivi 527: | Rivi 522: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
memo.obsMinDate = new Date( memo.obsMinDateMs ); | memo.obsMinDate = new Date( memo.obsMinDateMs ); | ||
Rivi 669: | Rivi 648: | ||
addToTitle = ''; | addToTitle = ''; | ||
} | } | ||
+ | |||
+ | if ( memo.obscode == 'levelavgsw' ) { | ||
+ | console.log( memo.obsesA ); | ||
+ | } | ||
+ | |||
if ( memo.obscode == 'level' ) { | if ( memo.obscode == 'level' ) { | ||
− | + | console.log( memo.obsesA ); | |
// make week averages | // make week averages | ||
memo.avgW = {}; | memo.avgW = {}; |