Add chart.update method to global api