Set active rangeselector button

When I select the “all” button in the rangeselector, I trigger a relayout event that ends with a plotly.redraw. The problem I have is that the “all” buttons loses its highlight, as if it was no longer active. How could I make it active?

I just found the problem. I was setting xaxis.autorange to false.

1 Like