Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 314: | Rivi 314: | ||
memo.jwR = new jwApi(); | memo.jwR = new jwApi(); | ||
memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | ||
+ | console.log( r ); | ||
memo.refs = memo.jwR.obs; | memo.refs = memo.jwR.obs; | ||
drawVisualization(memo); | drawVisualization(memo); | ||
Rivi 332: | Rivi 333: | ||
function drawVisualization( memo ) { | function drawVisualization( memo ) { | ||
− | console.log( memo ); | + | //console.log( memo ); |
if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } | if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } |