XY Chart scroll bar selected range

Hey there, I'm working in a requirement to have some metrics specified by the selected range in the scroll bar, I been trying different ways but have not succeeded, somebody know if there is any way on how to obtain the data from the selected range ?
Thanks for the help.