Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| 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: 0.75, type: ' | memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['summer'], lineWidth: 3, opacity: 0.75, type: 'polynomial', 'degree': 2, visibleInLegend: false }; | ||
memo.options.trendlines[1] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['winter'], lineWidth: 3, opacity: 0.75, type: 'linear', visibleInLegend: false }; | memo.options.trendlines[1] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['winter'], lineWidth: 3, opacity: 0.75, type: 'linear', visibleInLegend: false }; | ||
| Rivi 1 555: | Rivi 1 555: | ||
} | } | ||
orgsize = parseInt( v.match( /original-size: .+;/g )[0].replace( 'original-size: ', '' ).replace( ';', '') ); | orgsize = parseInt( v.match( /original-size: .+;/g )[0].replace( 'original-size: ', '' ).replace( ';', '') ); | ||
newsize = Math.round( (w/500) * orgsize ); | //newsize = Math.round( (w/500) * orgsize ); | ||
newsize = Math.round( Math.sqrt( (w/500) ) * orgsize ); | newsize = Math.round( Math.sqrt( (w/500) ) * orgsize ); | ||
if ( w > 500 ) { | if ( w > 500 ) { | ||


