Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 910: | Rivi 910: | ||
memo.axisMaxDate.setDate(0); | memo.axisMaxDate.setDate(0); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
memo.seasonsO = {}; | memo.seasonsO = {}; | ||
memo.seasonsA = []; | memo.seasonsA = []; | ||
Rivi 1 167: | Rivi 1 161: | ||
} | } | ||
− | |||
− | |||
memo.avgMsmooth = smooth( memo.avgMlist, memo.gSmoothing ); | memo.avgMsmooth = smooth( memo.avgMlist, memo.gSmoothing ); | ||
memo.avgLsmooth = smooth( memo.avgLlist, memo.gSmoothing ); | memo.avgLsmooth = smooth( memo.avgLlist, memo.gSmoothing ); | ||
memo.avgHsmooth = smooth( memo.avgHlist, memo.gSmoothing ); | memo.avgHsmooth = smooth( memo.avgHlist, memo.gSmoothing ); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
cc = memo.data.getNumberOfColumns(); | cc = memo.data.getNumberOfColumns(); | ||
Rivi 1 196: | Rivi 1 183: | ||
dataRow[cc-3] = memo.avgLsmooth[i]; | dataRow[cc-3] = memo.avgLsmooth[i]; | ||
dataRow[cc-2] = memo.avgHsmooth[i]; | dataRow[cc-2] = memo.avgHsmooth[i]; | ||
− | |||
− | |||
− | |||
memo.dataA.push( dataRow ); | memo.dataA.push( dataRow ); | ||
Rivi 1 204: | Rivi 1 188: | ||
memo.options.intervals = { 'style':'area' }; | memo.options.intervals = { 'style':'area' }; | ||
− | |||
− | |||
− | |||
} else if (memo.trendType == 'moving') { | } else if (memo.trendType == 'moving') { | ||
Rivi 1 237: | Rivi 1 218: | ||
dataRow[s*4+2] = obs.style; | dataRow[s*4+2] = obs.style; | ||
dataRow[s*4+3] = obs.popup; | dataRow[s*4+3] = obs.popup; | ||
− | dataRow[s*4+4] = null; //annotation | + | |
+ | if ( s == ( memo.seasonsA.length - 1 ) && o == ( memo.seasonsO[memo.seasonsA[s]].obses.length - 1 ) ) { | ||
+ | dataRow[s*4+4] = 'Test'; //annotation | ||
+ | } else { | ||
+ | dataRow[s*4+4] = null; //annotation | ||
+ | } | ||
memo.dataA.push( dataRow ); | memo.dataA.push( dataRow ); |