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

Range selectors + streaming and/or markers #387

Closed
alexcjohnson opened this issue Apr 1, 2016 · 1 comment
Closed

Range selectors + streaming and/or markers #387

alexcjohnson opened this issue Apr 1, 2016 · 1 comment
Labels
feature something new

Comments

@alexcjohnson
Copy link
Collaborator

@etpinard 's PR #373 handles the case of static data with lines but no markers. To handle streaming data, "latest X time" should be part of autorange, such that it gets recalculated every time the data changes.

Markers will be a problem in the existing system because they cause the range to be padded, and that padding will grow as a fraction of the plot as you zoom in. That would also be fixed by working this into the autorange machinery.

So what would such a system look like? I think extra options for rangemode seems like the easiest way, plus a mechanism to specify the span (how about span ??)

So, to show the last 6 months, something like:
rangemode='largest', span='6months'

But there could be others, like the first 6 months:
rangemode='smallest', span='6months'

Or autoscale one end, with the other end fixed (may handle the stepmode='todate' case from #373 ):
rangemode='afterconstant', rangelimit='2015-01-01' (rangelimit isn't a great name, but that's the idea)
rangemode='beforeconstant', rangelimit=100 (don't show anything bigger than 100)

Also: how do we work this into the interactions? If we change nothing else, doubleclick to autorange will revert to the rangemode settings (because all it does it set autorange: true. Maybe that's what we want to happen... but we could also do something snazzy like if you doubleclick again then it goes to FULL autorange (rangemode='normal') but stash the rangemode so if you doubleclick a third time you'll go back to the original rangemode. Dunno, that part may be too complicated...

@gvwilson
Copy link
Contributor

gvwilson commented Jun 5, 2024

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

@gvwilson gvwilson closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

2 participants