Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 1 546: | Rivi 1 546: | ||
dataRow[s*4+2] = obs.style; | dataRow[s*4+2] = obs.style; | ||
dataRow[s*4+3] = obs.popup; | dataRow[s*4+3] = obs.popup; | ||
− | + | ||
− | |||
− | |||
if ( ( today.getTime() - obs.compareDate.getTime() < 10*24*60*60*1000 ) && s == 0 && o == ( memo.seasonsO[memo.seasonsA[s]].obses.length - 1 ) ) { | if ( ( today.getTime() - obs.compareDate.getTime() < 10*24*60*60*1000 ) && s == 0 && o == ( memo.seasonsO[memo.seasonsA[s]].obses.length - 1 ) ) { | ||
− | + | ||
− | + | //var diff = obs.value - memo.avgW[ obs.compareDate.getFullYear() ][ obs.compareDate.getWeek() ].avg; | |
− | + | //var diff = Math.round( diff*100 ); | |
− | + | //var diffStr = diff.toString() + ' cm'; | |
− | + | //if ( diff > 0 ) { diffStr = '+' + diffStr; } | |
− | var diff = obs.value - memo.avgW[ obs.compareDate.getFullYear() ][ obs.compareDate.getWeek() ].avg; | ||
− | var diff = Math.round( diff*100 ); | ||
− | var diffStr = diff.toString() + ' cm'; | ||
− | if ( diff > 0 ) { diffStr = '+' + diffStr; } | ||
dataRow[s*4+4] = null; //diffStr; //annotation | dataRow[s*4+4] = null; //diffStr; //annotation |