called after view was repainted
chart.attachEvent("onAfterRender", function(){ //custom code here });