charts[] array automatically updates when date ranges change in UI