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

Implement Axis boundaries #1353

Closed
wants to merge 1 commit into from
Closed

Conversation

inDream
Copy link
Contributor

@inDream inDream commented Feb 4, 2017

Added two options in layout: bound and autobound for control the axis boundaries.

@etpinard I would like to know is there a list of functions I need to modify in order to add this feature?
As there're different actions to trigger relayout: click buttons at displayModeBar, scrollZoom at axis, etc.
My draft commit only can handle axis change by drag but not scroll.

Also is there any convenient ways to undo drag / zoom?

Related issues: #887 #400

@etpinard
Copy link
Contributor

etpinard commented Feb 7, 2017

Ah I see. Looks like you're trying to add hacks inside relayout to make this work. This is the wrong approach I'm afraid.

You'll need to dive into the axes.js draw functions and limit the visible range there.

Thanks for looking into this 🍻

@inDream
Copy link
Contributor Author

inDream commented Feb 8, 2017

Beside axes auto range, I think prevent drag / zoom also necessary for limiting user only can view area with data. How can I achieve that?

@etpinard
Copy link
Contributor

etpinard commented Feb 8, 2017

@etpinard
Copy link
Contributor

etpinard commented Jul 12, 2017

Closing due to lack of activity.

I recommend subscribing to #1876 for the latest development of this topic.

@etpinard etpinard closed this Jul 12, 2017
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

Successfully merging this pull request may close these issues.

2 participants