I checked the example and seems it works, but I have some questions.
Do we allow the user to select the time ranges for which to plot those graphs dynamically? And also for each of those groups do we calculate the regression line separately?