Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 608: | Rivi 608: | ||
obs = memo.obsesA[0]; | obs = memo.obsesA[0]; | ||
+ | //ref = memo.refs[0]; | ||
+ | console.log( memo.refs ); | ||
+ | ref = 0; | ||
− | diff = obs.value - | + | diff = obs.value - ref; |
diff = Math.round( diff*100 ); | diff = Math.round( diff*100 ); | ||
diffStr = diff.toString() + ' cm'; | diffStr = diff.toString() + ' cm'; |