Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 017: | Rivi 1 017: | ||
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' } ); | ||
memo.data.addColumn( { type: 'string', role: 'tooltip', 'p': { 'html': true } } ); | memo.data.addColumn( { type: 'string', role: 'tooltip', 'p': { 'html': true } } ); | ||
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' }; | ||
| Rivi 1 026: | Rivi 1 026: | ||
// series for trend line | // series for trend line | ||
memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['summer'], lineWidth: 3, opacity: | memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['summer'], lineWidth: 3, originalLineWidth: 3, opacity: 1, type: 'polynomial', 'degree': 2, visibleInLegend: false }; | ||
memo.options.trendlines[1] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['winter'], lineWidth: 3, opacity: | memo.options.trendlines[1] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['winter'], lineWidth: 3, originalLineWidth: 3, opacity: 1, type: 'polynomial', 'degree': 2, visibleInLegend: false }; | ||
} else { | } else { | ||
| Rivi 1 039: | Rivi 1 039: | ||
// series for trend line | // series for trend line | ||
memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 3, opacity: | memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 3, originalLineWidth: 3, opacity: 1, type: 'polynomial', 'degree': 2, visibleInLegend: memo.trendType!='moving' }; | ||
} | } | ||
| Rivi 1 559: | Rivi 1 559: | ||
if ( w > 500 ) { | if ( w > 500 ) { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + newsize ); | v = v.replace( ' size: ' + oldsize, ' size: ' + newsize ); | ||
for each ( var t in memo.options.trendlines ) { | |||
memo.options.trendlines[t].lineWidth = (w/500) * memo.options.trendlines[t].originalLineWidth; | |||
} | |||
} else { | } else { | ||
v = v.replace( ' size: ' + oldsize, ' size: ' + orgsize ); | v = v.replace( ' size: ' + oldsize, ' size: ' + orgsize ); | ||
for each ( var t in memo.options.trendlines ) { | |||
memo.options.trendlines[t].lineWidth = memo.options.trendlines[t].originalLineWidth; | |||
} | |||
} | } | ||
memo.data.Wf[ o ].c[ i ].v = v; | memo.data.Wf[ o ].c[ i ].v = v; | ||


