pass chart object for updating