fixed error to get chart to be responsive