[BUG]: Typing issue in relayout()
オープン
@camdecoster がすでに取り組んでいます。
2026年9月16日 から。
bug
P3
size: 1
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Description
Updating to plotly 4.1 caused a typing issue with relayout()
For this line of code:
Plotly.relayout(this.plotlyChartEl().plotlyInstance, {
'xaxis.autorange': true,
'yaxis.autorange': true,
});
I get the following error from typescript:
I checked the code here at:
https://github.com/plotly/plotly.js/blob/v4.1.1/src/types/core/api.d.ts#L212
export function relayout(root: Root, layout: Partial<Layout>)
Here the Partial<Layout> seems to cause the issue.
Notes
Versions:
- plotly.js: 4.1.0
- angular-plotly.js: 22.0.1
- angular: 22.1.x
Alternatives
I tried:
Plotly.relayout(this.plotlyChartEl().plotlyInstance, {
xaxis: {autorange: true},
yaxis: {autorange: true},
});
but this will replace the existing xaxis properties like anchor, color, etc. will be removed -- i just want to update the autorange in this line of code
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。