Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotly autosize=True in update_layout s not working #2623

Open
moblitas21 opened this issue Sep 26, 2023 · 0 comments
Open

Plotly autosize=True in update_layout s not working #2623

moblitas21 opened this issue Sep 26, 2023 · 0 comments

Comments

@moblitas21
Copy link

module: web_widget_plotly_chart
version: 16.0

Steps to reproduce

  • ...

I have created a chart like the module instructions and I have include the update_layout

fig.update_layout(
margin=go.layout.Margin(
l=150,
r=50,
b=50,
t=50,
pad=4
),
paper_bgcolor="white",
autosize=True,
)

Current behavior
https://snipboard.io/N2ZfOP.jpg

Expected behavior
I would like the plotly chart auto-adjust with the size of the DIV which is responsive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant