migrate logic from chart to time-view + implement Reset button logic