rerendering chart works fine