`skipNull` is a configuration option, not a dataset field
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript
调研方向
打开 docs/charts/bar.md,检查 skipNull 是如何在数据集属性和图表选项中列出的。根据 ChartConfiguration<'bar'> 示例验证文档所述的位置,并明确说明它是配置/控制器选项,而不是数据集字段。完成的标准是:页面不再指导用户设置 chart.data.datasets[0].skipNull,并清楚说明适用的选项部分。
由索引模型根据 Issue 内容生成。
描述
Documentation Is:
- Missing or needed?
- Confusing
- Not sure?
Please Explain in Detail...
skipNull is described at https://github.com/chartjs/Chart.js/blob/master/docs/charts/bar.md as a "Dataset Property".
Accordingly, I tried variations of chart.data.datasets[0].skipNull = true; and was never successful (nulls seem to be treated as zero). I've since enabled type checking and skipNull is reported as not a property of ChartDataSet.
I stumbled across this comment, which claims "skipNull is actually a controller option".
Sure enough, if I do something like:
const config: ChartConfiguration<'bar'> = {
type: 'bar',
options: {
skipNull: true,
},
};
I have more success (no type error and nulls seem to be excluded, though I haven't tested thoroughly). So I suppose the documentation is out of date?
Your Proposal for Changes
I don't quite understand the page structure well enough to be sure, but I think some of the options in the "Dataset" section should be restricted to the "Options" section, so it doesn't look like they can be applied to a dataset. Maybe the "Options" section should more clearly explain the use of "ChartConfiguration"?
Example
No response
- 主要语言
- JavaScript
- 星标
- 67.8k
- 派生
- 12k
- 平均合并
- 6 小时 15 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
chartjs/Chart.js 的其他 Issue
-
Numeric tick formatter gives repeated labels in scientific notation and with bounds: 'data'可能已有人在做 @RClaudiuM 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
linear axis: "reverse" breaks tick align 'inner'可能已有人在做 @Fardin7798 于 5 天前认领。 未关闭type: bug
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
fill: 'stack': a dataset's whole fill disappears when its x differs from the line below by ≤ 1e-6 px (happens in animations)可能已有人在做 @ump45nose 于 41 天前认领。 未关闭type: bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Legend pointStyle: 'line' does not apply dataset borderDash pattern可能已有人在做 @HuzaifaChaudary 于 73 天前认领。 未关闭type: bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
相似的 Issue
-
needs verification
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 7 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
awesome-dsh-plugin/awesome-dsh-plugin#14322 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
swc-project/swc-ai-issues#414 ·
-
[workshop-sim] Repair: Make Copilot access and billing path decision self-contained in Steps 07/07d未关闭feedback simulation workshop
难度 2/5 1-3 小时 新手友好度 72/100
githubnext/gh-aw-workshop#5597 ·
维护者通常 1 天内回复
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on Linux未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/desktop#167 ·