Hello everyone! I need to implement a feature for changing the time interval for data fetching. Currently, the data is displayed for the last 5 minutes. The task is to add two buttons — “next” and “back”. When pressing the “back” button, the interval should increase by 5 minutes (i.e., the data will be shown for the last 10 minutes, then 15, and so on). The “next” button should similarly decrease the interval by 5 minutes.
In my case, there is a modal window with a chart, and the data needs to update on the chart when these buttons are pressed. Is it possible to implement this?
Thanks in advance for your help!