Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 430: | Rivi 430: | ||
console.log( memo.options.series ); | console.log( memo.options.series ); | ||
console.log( memo.options.series.length ); | console.log( memo.options.series.length ); | ||
memo.options.trendlines[ memo.options.series.length - 1 ] = {}; | memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', color: colors.trend }; | ||
} else if ( memo.seriesA[ s ].type == 'candlestick' ) { | } else if ( memo.seriesA[ s ].type == 'candlestick' ) { | ||
| Rivi 1 201: | Rivi 1 201: | ||
} | } | ||
memo.options.chartArea = { top: t, left: l, width: (w - l - r), height: (h - t - b), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | memo.options.chartArea = { top: t, left: l, width: (w - l - r), height: (h - t - b), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | ||
memo.chart.draw( memo.data, memo.options ); | memo.chart.draw( memo.data, memo.options ); | ||
| Rivi 1 213: | Rivi 1 213: | ||
}); | }); | ||
} | } | ||
// add dash to trendlines | |||
jQuery( document.getElementById(memo.id) ).find( 'path[stroke="' + color.trend + '"]' ).each( function() { jQuery( this ).attr('stroke-dasharray', '5, 5'); }); | |||
// move current observations to top | // move current observations to top | ||


