Dynamic Last points lineal chart

Hi, I'm plotting realtime information from Arduino in a Lineal Chart but I want decide how many last points see in tha chart with a Slider or similiar. ¿How can I do that?.

Hi, sorry, but I cant think of a way to do this without updating the flow and redeploying.