plotly / plotly/plotly.js

enable navigation to previous view or zoom/pan level

Open
#6,659 2 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

When a user zooms and pans multiple times, sometimes user wants to go back to previous view rather than resetting the axes and zooming/panning multiple times to arrive at a specific view. It looks like this feature is not available. Is it possible to add this feature?

Example:
Initial plot(reset axes)
image
First zoom
image
Second zoom
image

After the Second zoom, I just want to go to First zoom with out resetting axes. This problem exaggerates for multiple navigations in a plot with many data points

This is supported in matplotlib using Forward and Back buttons.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing plotly.js's existing zoom, pan, and reset-axes behavior, then compare it with the linked Matplotlib navigation toolbar. Define how previous and next view states should work across repeated interactions. Done means users can navigate backward and forward through prior zoom or pan levels without resetting axes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.