JavaScript function not recognized as a function in Dash AG Grid sparklines
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, python
- 领域
- frontend
调研方向
从 issue 中链接的 agSparklineCellRenderer 配置和 Dash AG Grid JavaScript 函数文档开始。复现所提供的 sparkline 设置,并跟踪 formatter value 如何传递给 enterprise sparkline。完成的标准是 formatter 被识别为 JavaScript 函数而不是字符串,并且配置行为正确。
由索引模型根据 Issue 内容生成。
描述
A client has reported an issue where the function key in the formatter property for the agSparklineCellRenderer is not being recognized as a JavaScript function in enterprise sparklines. Instead, it is interpreted as a string, which leads to incorrect behavior.
Some properties in AG Grid take a JavaScript function as inputs according to the doc here
The issue occurs when using the following configuration in the AG Grid;
{
"cellRenderer": "agSparklineCellRenderer",
"cellRendererParams": {
"sparklineOptions": {
"type": "bar",
"formatter": {"function": "params.value[0] < 0 ? {fill: #5470c6} : {fill: #a90000}"},
"valueAxisDomain": [-15, 15],
"paddingOuter": 0,
"padding": {
"top": 0,
"bottom": 0
},
"label": {
"enabled": true,
"fontWeight": "bold",
"placement": "outsideEnd"
}
}
}
}
Reference Links:
https://community.plotly.com/t/aggrid-agsparklinecellrenderer-and-formatter-params/84780
https://dash.plotly.com/dash-ag-grid/javascript-and-the-grid#functions
- 主要语言
- Python
- 星标
- 239
- 派生
- 48
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/dash-ag-grid 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 48/100
plotly/dash-ag-grid#485 · 1 条评论 ·
-
documentation
难度 3/5 1-2 天 新手友好度 68/100
plotly/dash-ag-grid#484 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
plotly/dash-ag-grid#483 ·
-
Bump to v36可能已有人在做 @BSd3v 于 113 天前认领。 未关闭
plotly/dash-ag-grid#481 · 1 个 reaction · 已指派 2 人 ·
-
难度 3/5 1-2 天 新手友好度 35/100
plotly/dash-ag-grid#474 · 1 条评论 ·
查看 plotly/dash-ag-grid 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
strawberry-graphql/strawberry#4794 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
dataforgoodfr/cetolog#21 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
btclib-org/btclib#2932 ·
维护者通常 1 天内回复
-
metrics priority: medium
难度 1/5 1-3 小时 新手友好度 86/100
LearningCircuit/local-deep-research#8336 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100