update script -> param drawchart