Black Lives Matter. Please consider donating to Black Girls Code today.

Reset RangeSelector programmatically

I am using Plotly.js for drawing multi-category chart with rangeSlider / rangeSelector.
My problem is, when i am loading the chart and set rangeSelector and try to load the next record, the rangeSelector does not reset. It still spans to that particular window, but the whole chart resets with new data.
How can I reset the RangeSelector programmatically, once I redraw the chart?