enable updating the config of a plot without changing other parameters
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
We can change the layout of an existing plot with Plotly.relayout, change the data with Plotly.react, but how to change the config of a plot without changing the other parameters?
Example:
// happens when clicking on a button
var config = element.config; // problem: this doesn't exist! <-- how to get the current config state of the plot?
config["staticPlot"] = true; // let's add a configuration parameter
Plotly.react(element.id, element.data, element.layout, config)
How to get element.config in the same way element.layout and element.data exist?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先阅读 issue 中引用的入口 Plotly.relayout 和 Plotly.react,然后跟踪现有 plot 如何暴露其数据、layout 和配置状态。当能够获取并更新 plot 的当前 config,同时不改变其其他参数,且相关测试覆盖了该行为时,工作就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization, frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100