plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

autosizing issue since upgrade from 5.24.1 to 6.3.0

Open FlorianPix opened this issue 3 months ago • 1 comments

Since I upgraded plotly from 5.24.1 to 6.3.0 my diagrams do not take up the whole width of the parent container anymore. Minimal working example using solara:

import solara
import plotly.express as px

@solara.component
def create_dashboard():
  fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
  return solara.Div(
          [solara.FigurePlotly(fig)],
          style={"width": "100%", "display": "flex", "flex": "1 1 auto"},
      ),
  )

@solara.component
def Page():
    create_dashboard()

What is the accepted way of using full width in >6.0.0 ?

FlorianPix avatar Oct 09 '25 09:10 FlorianPix

@camdecoster @emilykl possibly related to other resizing issues?

gvwilson avatar Oct 09 '25 12:10 gvwilson