Skip to content

autosizing issue since upgrade from 5.24.1 to 6.3.0 #5370

@FlorianPix

Description

@FlorianPix

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions