Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 045: | Rivi 1 045: | ||
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' }; | 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' }; | ||
} | } | ||
console.log( memo ); | //console.log( memo ); | ||
if ( memo.trendType = 'smart' ) { | if ( memo.trendType = 'smart' ) { | ||
if ( memo.axisMaxDate.getFullYear() - memo.axisMinDate.getFullYear() > 10 ) { | if ( ( memo.axisMaxDate.getFullYear() - memo.axisMinDate.getFullYear() > 10 ) && memo.obsesTotal > 20 ) { | ||
console.log( memo.options.trendlines ); | |||
for ( var t in memo.options.trendlines ) { | for ( var t in memo.options.trendlines ) { | ||
memo.options.trendlines[ t ].type = 'polynomial'; | memo.options.trendlines[ t ].type = 'polynomial'; | ||


