Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Event on range selector change #2719

Closed
myxor opened this issue Jun 10, 2018 · 11 comments
Closed

Feature request: Event on range selector change #2719

myxor opened this issue Jun 10, 2018 · 11 comments

Comments

@myxor
Copy link

myxor commented Jun 10, 2018

It would be nice to catch some event on changes (or clicks) of existing range selector buttons.

So we could make some data fetching request to the data-backend with the new set date range and just fetch the selected data instead of all existing data.

@alexcjohnson
Copy link
Collaborator

Range selectors generate plotly_relayout events:
screen shot 2018-06-11 at 7 23 12 am
These events are nice because you can see any other range changes as well (zoom, pan...). Does that work for you?

@myxor
Copy link
Author

myxor commented Jun 11, 2018

Exaclty what i needed.
I did not think about that event handling what i wanted to archive.
Thank you!

@etpinard
Copy link
Contributor

etpinard commented Jun 11, 2018

Looks like @myxor's issue is resolved. Closing.

For other requests concerning additional events, please use #145

@Kipngetich33
Copy link

thank you alexcjohnson that worked for me

@Rapster
Copy link

Rapster commented Apr 17, 2019

I almost need the same, plotly_relayout is fired when range is changing, I need a similar event but after the range has been set (meaning fired after mouseup event). Any idea? Probably related to #2216

@HarryJJ
Copy link

HarryJJ commented Jun 22, 2020

@Rapster Did you find a solution to this?

@Rapster
Copy link

Rapster commented Jun 22, 2020

I don't think so, I ended up using another library

@HarryJJ
Copy link

HarryJJ commented Jun 22, 2020

Ah dang. No worries thanks for getting back to me!

@NixTheMan
Copy link

@Rapster what library did you end up using? As I am hitting a wall with #2216 ass well

@czanbaka
Copy link

I am having the same issues still, any updates on this? What was everyone's resolution?

@MojoKingBee
Copy link

Hi,
i've found that if you act on zoom you should check for ['xaxis.range[0]'] key, if you act on rangeslider check for ['xaxis.range'][0].
at least in the version of plotly.js I'm using (an old one)
hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants