How to get the data of a range in plotly

I have a graph in which I can assign a range of data visualization. How can i getting only the data that is within the range I want to visualize, and then creating another separate chart using Plotly in javascript.

Link Graph:

https://codepen.io/plotly/pen/WwXEoV

Capture Graph Plotly