Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 792: | Rivi 792: | ||
//memo.axisMaxDate.setMonth( memo.axisMaxDate.getMonth()+1 ); | //memo.axisMaxDate.setMonth( memo.axisMaxDate.getMonth()+1 ); | ||
memo.axisMaxDate.setDate(31); | memo.axisMaxDate.setDate(31); | ||
− | console.log( memo.obsesA ); | + | //console.log( memo.obsesA ); |
+ | |||
for (var o in memo.obsesA) { | for (var o in memo.obsesA) { | ||
obs = memo.obsesA[ o ]; | obs = memo.obsesA[ o ]; | ||
Rivi 800: | Rivi 801: | ||
} | } | ||
obs.xvalue = obs.compareDate; | obs.xvalue = obs.compareDate; | ||
− | obs.yvalue = obs. | + | obs.yvalue = obs.data.val; |
− | + | obs.value = obs.data.val + ' ' + obs.data.unit; | |
obs.valueUnit = i18n[ 'Date' ][ memo.lang ]; | obs.valueUnit = i18n[ 'Date' ][ memo.lang ]; | ||
obs.tooltip = '<p><b>' + obs.season + '</b></p>'; | obs.tooltip = '<p><b>' + obs.season + '</b></p>'; | ||
Rivi 872: | Rivi 873: | ||
} else if ( memo.seriesA[ s ].type == 'scatter' ) { | } else if ( memo.seriesA[ s ].type == 'scatter' ) { | ||
st += 4; | st += 4; | ||
− | } | + | } |
− | + | } | |
− | + | ||
+ | drawChart(memo); | ||
} | } | ||