Ero sivun ”Widget:JwObsCharts2” versioiden välillä
Järvi-meriwikistä
Rivi 1 087: | Rivi 1 087: | ||
memo.data.addColumn( { id:'i0', type:'number', role:'interval' } ); | memo.data.addColumn( { id:'i0', type:'number', role:'interval' } ); | ||
memo.data.addColumn( { id:'i0', type:'number', role:'interval' } ); | memo.data.addColumn( { id:'i0', type:'number', role:'interval' } ); | ||
+ | memo.data.addColumn( { type: 'string', role: 'tooltip', 'p': { 'html': true } } ); | ||
memo.data.addColumn( 'number', memo.curSeason ); | memo.data.addColumn( 'number', memo.curSeason ); | ||
memo.data.addColumn( {'type': 'string', 'role': 'style' } ); | memo.data.addColumn( {'type': 'string', 'role': 'style' } ); | ||
Rivi 1 094: | Rivi 1 095: | ||
// 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' }; | ||
− | + | ||
− | |||
− | |||
for (var o in memo.obsesA) { | for (var o in memo.obsesA) { | ||
if ( memo.obsesA[o].printouts.ObsCode == memo.refcode ) { | if ( memo.obsesA[o].printouts.ObsCode == memo.refcode ) { | ||
Rivi 1 135: | Rivi 1 134: | ||
weekdata[w].low, | weekdata[w].low, | ||
weekdata[w].high, | weekdata[w].high, | ||
+ | 'tooltip1', | ||
weekdata[w].val, | weekdata[w].val, | ||
weekdata[w].style, | weekdata[w].style, | ||
null, | null, | ||
− | + | 'tooltip2' | |
] ); | ] ); | ||
} | } | ||
− | + | ||
− | |||
− | |||
// make ticks for x axis | // make ticks for x axis | ||
memo.options.hAxis.ticks = []; | memo.options.hAxis.ticks = []; |