Scrolling swift Charts and reloading data

Hello! I am trying to do the following: Make a chart that scrolls, but the values ​​of the Y axis do not move, when scrolling, it loads the data / does any action and has dynamic values ​​​​on axis marks (the range should change depending on which marks are currently visible)

I understand that I have to handle dots appearing and disappearing as I scroll, but I don't understand where I need to start.

Scrolling swift Charts and reloading data
 
 
Q