docs: Add plotly.js v4 migration guide - #455
Open
camdecoster wants to merge 25 commits into
Open
Conversation
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
ndrezn
reviewed
Jul 20, 2026
ndrezn
left a comment
Member
There was a problem hiding this comment.
I would suggest adding some grouping by topic, like for example. Right now it's a just a long, ungrouped list so topics come and go back and forth.
Maybe something like:
- Environment & tooling
Setup-level changes that hit before you touch a figure.
- Minimum Node.js version
- TypeScript types
- Removed features
Things that are simply gone and need code deleted/renamed.
- Chart Studio APIs removed
- Mapbox traces and subplots removed (maybe could go in maps section? but it's top item).
- Dependency changes
Third-party library swaps whose output shifts even with identical input — the
"your figure looks slightly different and you didn't change anything" bucket.
- Color library swap (tinycolor2 → color)
- Country name lookup (country-regex → country-iso-search)
- Sankey layout algorithm update
- Maps & geo
By far the biggest cluster — all the MapLibre/geo framing behavior.
- Scattermap icon defaults
- Map subplots auto-frame to data
- Geo subplots auto-frame by default
- Geo fitbounds framing for antimeridian features
- Geo subplot zoom limits
- Cartesian & shapes
The remaining rendering-behavior changes that aren't map-related.
- Shape legend marker outlines honor line.dash
- Overlaying axis tickmode defaults to 'sync'
emilykl
reviewed
Jul 20, 2026
ndrezn
reviewed
Jul 20, 2026
| `tickmode` continues to default to `'auto'` on the overlaying axis. | ||
| Sync'ing tick positions to category slots is almost never the intent. | ||
|
|
||
| ### Opting out |
| / `pitch` in the layout — auto-framing steps aside and preserves the | ||
| chosen view across further data changes. | ||
|
|
||
| ### Opting out |
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
Comment on lines
+623
to
+629
| ### Antimeridian data | ||
|
|
||
| For data that straddles the antimeridian (points on both sides of ±180°), | ||
| the auto-frame picks the compact crossing range rather than the | ||
| long-way-around view. For example, `lon: [131.8855, -179]` frames as | ||
| `[131.8855, 181]` (a ~49° span across the antimeridian) instead of the | ||
| naive `[-179, 131.8855]` (~311° the wrong way). |
There was a problem hiding this comment.
Suggested change
| ### Antimeridian data | |
| For data that straddles the antimeridian (points on both sides of ±180°), | |
| the auto-frame picks the compact crossing range rather than the | |
| long-way-around view. For example, `lon: [131.8855, -179]` frames as | |
| `[131.8855, 181]` (a ~49° span across the antimeridian) instead of the | |
| naive `[-179, 131.8855]` (~311° the wrong way). | |
| ### Data that crosses the antimeridian | |
| For data that straddles the antimeridian (points on both sides of ±180°, in the middle of the Pacific Ocean), | |
| the auto-frame picks the compact crossing range rather than the | |
| long-way-around view. For example, `lon: [131.8855, -179]` frames as | |
| `[131.8855, 181]` (a ~49° span across the antimeridian) instead of the | |
| naive `[-179, 131.8855]` (~311° the wrong way). |
Would be nice to have a visual example here
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 20, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
emilykl
reviewed
Jul 29, 2026
…ges, add redirects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Creates a new Guides section, moves the v3 migration guide, and ddds the plotly.js v4 migration guide.
Closes plotly/plotly.js#7831.
Closes plotly/plotly.js#7841.
Changes
Testing
Notes