Home forums Using CanvasJS combining candlestick chart and line chart (moving average line) Reply To: combining candlestick chart and line chart (moving average line)

#18891

Suyash Singh
Participant

@nisha,

calculateMovingAverage() should be called before calling chart.render(). Please replace chart3.render(); by

calculateMovingAverage(chart3);
chart3.render();

___
Suyash Singh
Team CanvasJS