pypi / plotly
plotly
What changed in plotly 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
63 breaking1 security2 deprecations24 new APIs and options3 performance10 behavior and defaults1 tooling26 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initplotly 766 changes
Breaking changes 43
Raises an error for invalid-length hex codes and emits a warning for hex codes containing alpha.
Map traces now require Safari 15, Chrome 56, Firefox 51 and later.
Plotly Express no longer treats pandas unsigned integer columns as categorical, preventing incorrect orientation and unexpected plots.
Color processing switches to culori: decimal 0–1 rgb()/rgba(), hsv(), and invalid syntax are no longer supported; several additional CSS color formats are supported.
The deprecated Figure Factory function is removed.
Removed the deprecated figure factory.
Colors are parsed according to CSS Color 4; hsv(), several HSL/RGB forms, and hex values without a leading # no longer behave as before, and unparseable colors use the attribute default.
The engine argument is removed from image-generation functions and renderer constructors.
The engine argument has been removed from this image export API.
Removed the Mapbox-based trace; use go.Densitymap instead.
Marker icons are now tinted with marker.color; pass color="black" for the previous appearance.
Removed the Mapbox-based trace; use go.Scattermap instead.
Defaults axis.matches to True, linking axes in the same row and column for coordinated pan and zoom.
Static image generation no longer supports Kaleido versions less than v1.0.0.
The default changes from false to 'locations', so geo subplots auto-fit the initial view to trace data.
Removed because it referenced data sources in Chart Studio.
Removed the mapbox subplot; use layout.map, which takes the same attributes.
Tile-map legend swatches always draw a circle, regardless of marker.symbol.
With "country names", resolution accepts more forms and ignores case, accents, and punctuation; partial accidental matches are rejected, and unrecognized locations are logged and skipped.
The icon set was updated, and a few icon names were removed.
The mapbox subplot is removed.
In Plotly Express, mapbox_style becomes map_style.
The mapboxAccessToken config option is removed.
Histogram marginal subplots in density_heatmap and density_contour now apply histfunc/z aggregation instead of always showing raw bin counts.
Support for MathJax v2 is dropped.
Support is added for MathJax v4 to render mathematical equations in charts.
Static image generation no longer supports Orca.
Support for Orca has been removed.
The engine argument has been removed from this API.
The engine argument has been removed from this image export API.
The engine argument has been removed from this image export API.
The engine argument has been removed from this image export API.
Removed the Mapbox-based function; use px.choropleth_map instead.
Removed the Mapbox-based function; use px.density_map instead.
Removed the Mapbox-based function; use px.line_map instead.
Removed the Mapbox-based function; use px.scatter_map instead.
The updated layout algorithm can shift node positions and link paths for the same data, with links tending to cross less.
The initial map view now dynamically computes center and zoom to auto-fit trace data by default.
The trace type and its corresponding graph_objects and Plotly Express functions are removed; use the equivalent map traces instead.
Removed as a Chart Studio configuration option.
Removed from all traces because the Chart Studio streaming service is no longer available.
An overlaying axis now defaults to "sync", drawing ticks and gridlines at the base axis positions; use "auto" for independent grids.
Removed src attributes, which referenced data sources in Chart Studio.
Security 1
Updates maplibre-gl to address CVE-2026-85061.
New APIs and options 10
Supports heatmap strips in the x or y margin, colored by the same z/histfunc aggregate as the main plot and sharing its color scale.
Adds an opt-in modebar button for downloading Plotly figures as JSON.
Adds a setting for choosing legend group behavior on double-click.
New Sankey attribute controls flow along the orientation axis; "reversed" flows right to left or bottom to top.
Clamps how far users can zoom a geo subplot; the value is a multiplier of projection.scale.
Adds an attribute to enable or disable map auto-fitting; its default is 'locations'.
Controls Sankey link ordering; "auto" reorders links to reduce crossings, while "input" preserves input order.
Controls Sankey node ordering; "auto" reorders nodes to reduce crossings, while "input" preserves input order.
A new trace type visualizes vector fields using arrows.
A modebar button generates a chart-sharing link via Plotly Cloud.
Behavior and default changes 4
Increases the default double-click delay threshold from 300ms to 500ms.
Version 7 upgrades the bundled Plotly.js from version 3 to version 4, incorporating its changes; most figures render without changes.
Auto-fitting behavior improves when zoom and center are not specified.
Enabled by default and adds a Share chart button to the mode bar.
Fixes and other changes 8
Fixes an issue that caused an oversized div when showing a figure in Google Colab.
Supports custom tick values and labels when matplotlib tick positions do not follow an arithmetic progression, including on date axes.
Converted figures now take paper and plot background colors from the matplotlib figure and axes.
Fixes per-point marker colors for hover labels in scattergl and quiver traces.
GeoJSON bounding-box computation is fixed for choropleth and scattergeo geometries crossing the antimeridian.
Correctly parses 3-digit shorthand hexadecimal colors such as #FFF.
Matplotlib path collections in data coordinates are rendered as filled polygons or lines rather than silently dropped.
The generated HTML template now includes a doctype declaration.
plotly 664 changes
Breaking changes 20
The modebar button was renamed from
sendDataToCloudand updated to upload the chart to Plotly Cloud; the receiving endpoint is not yet functional, so uploads will not complete.numpy versions less than 1.22 are no longer supported.
Removes support for the deprecated attribute; use annotation.xref and annotation.yref instead.
Drops deprecated autotick attributes from cartesian axes.
Removes support for the deprecated attribute; use orientation instead.
Drops gl2d subplots.
Removes support for the deprecated attribute; use gl3d.camera instead.
go.FigureWidget now uses anywidget, which must be installed.
The trace was removed; use heatmap instead.
Jupyter Notebook versions earlier than 7 are no longer supported; upgrade to the latest version.
Removes the deprecated error bar opacity attribute; use the alpha channel of the error bar color attribute instead.
Drops the deprecated option from config.
The trace was removed; use scattergl instead.
Drops the tenacity dependency.
The layout attribute was removed; replace it with title.font.
The layout attribute was removed; replace it with title.offset.
The layout attribute was removed; replace it with title.position.
The layout attribute was removed; replace it with title.side.
Transforms were removed; similar functionality can be achieved by preprocessing data with a dataframe library.
Removes the deprecated surface trace attribute.
Deprecations 2
Deprecates create_hexbin_mapbox in favor of create_hexbin_map.
Mapbox-based traces are deprecated; use MapLibre-based traces instead.
New APIs and options 14
Adds a layout attribute to sort unified hover label items by value.
Adds an optional font parameter to make_subplots.
Adds a layout attribute that enables click events anywhere in the plot area, not just over traces.
Adds a configuration property to set whether the notifier is displayed in the top right area of the viewport.
Adds facet_row support to px.imshow for creating subplots along an additional dimension.
Adds a layout attribute that enables hover events anywhere in the plot area, not just over traces.
Scatter plots support dashed marker lines.
Shapes can reference multiple axes.
Pie legend now supports arrays, allowing configuration per slice.
hovertemplate is now supported for candlestick and ohlc traces.
Adds the hovertemplatefallback attribute in the plotly.js update.
Adds an SI extended formatting rule for tick exponents on axis labels, allowing values to use extended SI prefixes such as femto, pico, and atto.
Adds the texttemplatefallback attribute in the plotly.js update.
Adds a subtitle attribute to all Plotly Express traces.
Performance 3
The validate_gantt function is faster.
Plotly.py takes advantage of Plotly.js typed-array handling for improved performance.
Plotly Express uses Narwhals to natively support pandas, Polars, and PyArrow, significantly improving performance with Polars or PyArrow.
Behavior and default changes 6
The Colab renderer is enabled by the presence of COLAB_NOTEBOOK_ID instead of testing whether google.colab can be imported.
The __eq__ method for graph_objects classes returns NotImplemented to let the other operand handle the comparison.
The pie property legendrank supports arrays, allowing it to be configured per slice.
USA location lookup for scattergeo and choropleth traces now uses both location names and abbreviations.
Axis autorange increases when bar charts have outside text labels, helping prevent the labels from being clipped.
Clicking legend titles can toggle visibility of all traces in the legend.
Tooling 1
Adds an extra for easily installing Plotly Express dependencies.
Fixes and other changes 18
Geo
fitboundsnow chooses a compact longitude range when point data straddles the antimeridian.Plotly Express now raises a clear ValueError when an unsupported marginal plot type is passed, instead of failing later with a cryptic error.
Fixes stale error bars after toggling traces with mixed error bar visibility.
Fixes incorrect annotation placement on datetime axes.
User-specified color_continuous_scale is no longer ignored when the template has autocolorscale=True.
Default headers are passed to Kaleido v1.3.0 to avoid Open Street Map tiles being blocked.
Propagates requested default_height and default_width to the outer wrapper div so responsive percentage dimensions inherit from a sized parent instead of collapsing to the plotly.js 450px fallback.
Empty histograms no longer include a None label in the hover template.
Plotly no longer causes a global warning format side effect.
The generated <style> tag no longer includes the unneeded type="text/javascript" attribute.
Fixed a spurious engine deprecation warning when using write_image.
Pie trace legend now accepts array values.
Pie trace showlegend now accepts array values.
Plotly Express now respects trace-specific color sequences defined in templates via template.data.<trace_type>.
Fixes conversion of NumPy datetime values contained in Python lists, which were previously converted to integers.
Fixes show to return FigureWidget instead of displaying Figure.
Fixes a bug that caused LaTeX not to render in charts in JupyterLab 4 and Jupyter Notebook 7 or later.
Makes offsetgroup work with bar traces in stacked and relative barmode.