sorry its too late………. but i thnk instead of using chart1 and chart2 , jus change css style position relative for that canvas. its working for me. $(“.canvasjs-chart-canvas”).attr(“style”, “position: relative”);