Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 422: | Rivi 422: | ||
if ( memo.seriesA[ s ].type == 'scatter' ) { | if ( memo.seriesA[ s ].type == 'scatter' ) { | ||
memo.data.addColumn( 'date', memo.obsMinYear + '-' + memo.obsMaxYear ); | memo.data.addColumn( 'date', memo.seriesA[ s ].title + ' ' + memo.obsMinYear + '-' + memo.obsMaxYear ); | ||
memo.data.addColumn( { type: 'string', 'role': 'style' } ); | memo.data.addColumn( { type: 'string', 'role': 'style' } ); | ||
memo.data.addColumn( { type: 'string', role: 'tooltip', 'p': { 'html': true } } ); | memo.data.addColumn( { type: 'string', role: 'tooltip', 'p': { 'html': true } } ); | ||
memo.data.addColumn( { type: 'string', role: 'annotation' } ); | memo.data.addColumn( { type: 'string', role: 'annotation' } ); | ||
memo.options.series.push( { | memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 9, color: memo.seriesA[ s ].color, x: '#3366cc' } ); | ||
memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, color: i18n[ memo.seriesA[ s ].id ].color, visibleInLegend: false }; | memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, color: i18n[ memo.seriesA[ s ].id ].color, visibleInLegend: false }; | ||


