update fig and chart