updated updateChart function as it was missing some settings