Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 376: | Rivi 376: | ||
s = obs.seriesId; | s = obs.seriesId; | ||
if ( typeof memo.seriesO[ s ] == 'undefined' ) { | if ( typeof memo.seriesO[ s ] == 'undefined' ) { | ||
memo.seriesO[ s ] = { 'id': s, 'type': 'scatter', 'color': i18n[ s ].color, 'obses': [] }; | |||
memo.seriesO[ s ] = { 'type': 'scatter', 'color': i18n[ s ].color, 'obses': [] }; | |||
//memo.seriesO[ s + '_trend' ] = { 'type': 'linear', 'obses': [] }; | //memo.seriesO[ s + '_trend' ] = { 'type': 'linear', 'obses': [] }; | ||
} | } | ||
| Rivi 429: | Rivi 428: | ||
memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 9, color: memo.seriesA[ s ].color, x: '#3366cc' } ); | memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 9, color: memo.seriesA[ s ].color, x: '#3366cc' } ); | ||
console.log( s ); | |||
memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, color: i18n[ s ].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 }; | ||
} else if ( memo.seriesA[ s ].type == 'candlestick' ) { | } else if ( memo.seriesA[ s ].type == 'candlestick' ) { | ||


