Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Range selection by dragging rectangle

I am following this link for range selection in plotly: http://codepen.io/etpinard/pen/zBWRZb
I select a rectangular region of interest and the x, y ranges are displayed . How ever when I double click the plot , (that is unselect the dragged rectangle ) , the values(of x-y ranges) remain same instead of resetting themselves to null (as I have no region selected now, so ranges must be null as nothing is selected ) . Actually I want that x-y ranges to be null when at any point no rectangle is dragged or when plot is double clicked . Can someone help me on that :slight_smile:

maybe something like this http://codepen.io/etpinard/pen/yJjRAv would be better for you.

Thanks alot etienne . I worked for me :smiley: