You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add hover and color-scale support to DensityMapbox
Extend the DensityMapbox trace with the hover, data-array, and
color-control attributes it was missing relative to the plotly.js
densitymapbox reference:
- hover/text: text, hovertext, hoverinfo, hovertemplate,
hovertemplatefallback, hoverlabel
- data/misc: ids, meta, customdata, uirevision, below
- color: colorscale, autocolorscale, reversescale, showscale,
colorbar, coloraxis
The FieldSetter derive generates the scalar and *_array builder
setters (e.g. hover_text/hover_text_array), so per-point hover text
and shared colorscales are now expressible. Existing fields are
unchanged. Extends the serialize_density_mapbox test to cover the
new keys.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
7
7
8
8
### Added
9
9
10
+
-[[#413](https://github.com/plotly/plotly.rs/issues/413)] Add hover (`hovertext`/`hoverinfo`/`hovertemplate`/`customdata`/`hoverlabel`/`text`) and color-scale (`colorscale`/`colorbar`/`showscale`/`reversescale`/`autocolorscale`/`coloraxis`) support, plus `ids`/`meta`/`uirevision`/`below`, to `DensityMapbox`
0 commit comments