Fixing problem where the chart wasnt being generated