Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 852: | Rivi 852: | ||
memo.data.addColumn( 'number', memo.obsMinYear + '-' + memo.obsMaxYear ); | memo.data.addColumn( 'number', memo.obsMinYear + '-' + memo.obsMaxYear ); | ||
− | memo.data.addColumn( {id:' | + | memo.data.addColumn( { id:'i1', type:'number', role:'interval' } ); |
− | memo.data.addColumn( {id:'i1', type:'number', role:'interval'} ); | + | memo.data.addColumn( { id:'i1', type:'number', role:'interval' } ); |
memo.data.addColumn( {'type': 'string', 'role': 'style' } ); | memo.data.addColumn( {'type': 'string', 'role': 'style' } ); | ||
memo.data.addColumn( { type: 'string', role: 'annotation' } ); | memo.data.addColumn( { type: 'string', role: 'annotation' } ); | ||
Rivi 873: | Rivi 873: | ||
memo.options.series[0] = { type: 'line', pointSize: 6, color: '#3366cc' }; | memo.options.series[0] = { type: 'line', pointSize: 6, color: '#3366cc' }; | ||
memo.options.curveType = 'function'; | memo.options.curveType = 'function'; | ||
− | memo.options.intervals = { 'style': ' | + | memo.options.intervals = { 'style': 'area' }; |
//console.log(memo); | //console.log(memo); | ||