working and updateable chart now working