How to change the initial rangeselector's selection?

I have a plot with a rangselector. When the page loads it always shows all the data. I would like it to show another range right after loading, e.g. 1 year or 1 month. How can I do that ?