Ero sivun ”Widget:JwObsCharts2” versioiden välillä
Järvi-meriwikistä
Rivi 1 106: | Rivi 1 106: | ||
var weekdata = []; | var weekdata = []; | ||
for ( var w=1; w<=53; w++ ) { | for ( var w=1; w<=53; w++ ) { | ||
− | weekdata.push( { 'week': w, 'val': null, 'mw': null, 'low': null, 'high': null } ); | + | weekdata.push( { 'week': w, 'val': null, 'mw': null, 'low': null, 'high': null, 'style': null } ); |
} | } | ||
Rivi 1 112: | Rivi 1 112: | ||
if ( memo.obsesA[ o ].printouts.ObsCode == memo.obscode ) { | if ( memo.obsesA[ o ].printouts.ObsCode == memo.obscode ) { | ||
weekdata[ memo.obsesA[ o ].data.week-1 ].val = memo.obsesA[ o ].data.val; | weekdata[ memo.obsesA[ o ].data.week-1 ].val = memo.obsesA[ o ].data.val; | ||
+ | weekdata[ memo.obsesA[ o ].data.week-1 ].style = memo.obsesA[ o ].style; | ||
} else { | } else { | ||
weekdata[ memo.obsesA[ o ].data.week-1 ].mw = memo.obsesA[ o ].data.val; | weekdata[ memo.obsesA[ o ].data.week-1 ].mw = memo.obsesA[ o ].data.val; | ||
Rivi 1 135: | Rivi 1 136: | ||
weekdata[w].high, | weekdata[w].high, | ||
weekdata[w].val, | weekdata[w].val, | ||
− | + | weekdata[w].style, | |
null, | null, | ||
null | null |