drawchart callback after def

#267 see if it helps #271 too