Ero sivun ”Widget:JwObsCharts2” versioiden välillä
Järvi-meriwikistä
Rivi 1 091: | Rivi 1 091: | ||
// series for trend line | // series for trend line | ||
//memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 2, opacity: 0.5, type: 'linear', visibleInLegend: memo.trendType!='moving' }; | //memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 2, opacity: 0.5, type: 'linear', visibleInLegend: memo.trendType!='moving' }; | ||
+ | |||
+ | console.log( memo.obsesA ); | ||
for (var o in memo.obsesA) { | for (var o in memo.obsesA) { | ||
− | if ( memo.obsesA.printouts.ObsCode == memo.refcode ) { | + | if ( memo.obsesA[o].printouts.ObsCode == memo.refcode ) { |
− | memo.obsesA[o].compareDate = getDateOfISOWeek( memo.obsesA.printouts.DataJSON.week, memo.curYear ); | + | memo.obsesA[o].compareDate = getDateOfISOWeek( memo.obsesA[o].printouts.DataJSON.week, memo.curYear ); |
} | } | ||
} | } | ||
− | + | ||
for (var o in memo.obsesA) { | for (var o in memo.obsesA) { | ||