autosizing issue since upgrade from 5.24.1 to 6.3.0
未关闭
还没有人认领这个 Issue。
bug
P2
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
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 ?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中的最小 Solara 示例开始,比较其在 Plotly 5.24.1 和 6.3.0 之间的自动调整大小行为。跟踪 solara.FigurePlotly 如何处理图形容器,并确定哪种用法或更改可以恢复父级的完整宽度;升级后提供的图表填满其父级即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- plotly, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100