feat: Add symlog scale, scattermap zoom fix, and line dash support by DhruvGarg111 · Pull Request #7712 · plotly/plotly.js · GitHub
Skip to content

feat: Add symlog scale, scattermap zoom fix, and line dash support - #7712

Closed
DhruvGarg111 wants to merge 3 commits into
plotly:masterfrom
DhruvGarg111:feat/scattermap-zoom-symlog-dash
Closed

DhruvGarg111 wants to merge 3 commits into
plotly:masterfrom
DhruvGarg111:feat/scattermap-zoom-symlog-dash

Conversation

@DhruvGarg111

@DhruvGarg111 DhruvGarg111 commented Feb 17, 2026 •

Copy link
Copy Markdown

This PR addresses three issues:

  1. Fixes [BUG]: Default zoom and center for scattermap traces does not show all points #7674 (Scattermap Zoom): Implemented auto-calculation for \zoom\ and \center\ in \scattermap\ traces when they are not provided by the user. It now computes the bounding box of the data and fits the map view accordingly.
  2. Fixes add symmetrical log scale #221 (Symlog Scale): Added a new axis type \symlog\ (symmetrical log). This uses an \�sinh\ transformation to allow log-like scaling that passes smoothly through zero and handles negative numbers.
  3. Fixes [Feature Request] Support line styles in Scattermapbox #6791 (Line Dash): Added support for \line.dash\ in \scattermap\ and \scattermapbox\ traces, mapping Plotly dash strings (e.g. 'dot', 'dashdot') to Mapbox's \line-dasharray\ format.

Changes:

  • Modified \src/plots/map/layout_defaults.js\ for auto-bounds.
  • Modified \src/plots/cartesian/set_convert.js\ and \layout_attributes.js\ for \symlog.
  • Modified \�ttributes.js\ and \convert.js\ in \src/traces/scattermap\ and \src/traces/scattermapbox\ for dashed lines.

@DhruvGarg111 DhruvGarg111 changed the title Feat/scattermap zoom symlog dash feat: Add symlog scale, scattermap zoom fix, and line dash support Feb 17, 2026
@emilykl

emilykl commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

@emilykl emilykl closed this Feb 18, 2026
CloudCorpRecords added a commit to CloudCorpRecords/plotly.js that referenced this pull request Oct 20, 2026
Implements plotly#6791: scattermap line attributes gain the
standard dash style, converted to the MapLibre line-dasharray paint
property. The earlier attempt (plotly#7712) bundled this with unrelated work
and never coerced the attribute (defaults.js passed noDash: true), so
the feature never took effect. Dash lengths reuse Drawing.dashStyle so
named styles match SVG rendering, scaled to line-width units for
MapLibre. Includes jasmine defaults and convert tests, a new image mock,
regenerated plot schema, and a draftlog entry.

Signed-off-by: Rene Turcios <95189389+CloudCorpRecords@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants