Fixed the chart growing bigger and not resetting