fix chart not resetting after config.options is changed