Repository navigation
feat(v3): add tiny-line chart component (#3893) - #3925
DoubleCore wants to merge 3 commits into
Conversation
Signed-off-by: DoubleCore <doublecore@users.noreply.github.com>
Remove shared README and skill entry changes as requested by the maintainer; shared entries will be added by a separate batch PR.
Restore shared files to this PR's merge-base content, preserving upstream changes made after the branch diverged. A unified follow-up PR will own the batch entries.
|
按维护者 @interstellarmt 在 #3893 的协调结论,我保留已 review 的 8 个 PR(#3895/#3897/#3898/#3899/#3900/#3901/#3903/#3905),其余子任务交给其他同学认领,本 PR 关闭让位、不再推进。 该项已有同学重新认领(doge-th 已登记(11-17)并提交实现 PR #3937),由对方实现,我方不重复推进。 交付物完整保留在分支 给其他同学让路,避免重复开发。感谢 @interstellarmt 的协调。 |
|
给后来人的实现笔记(本 PR 已关闭让位,内容保留供参考) 这张图我实现过一版,因维护者协调已让位(该项现由 @doge-th 认领,我不重复推进)。把踩过的坑留在这里,避免重复试错。 关键路径
chart.options({
type: 'line',
data,
encode: { x: 'date', y: 'newSubscribers' },
axis: { x: false, y: false },
legend: false,
tooltip: false,
style: { stroke: '#5B8FF9', lineWidth: 2 },
});
高频易错点(都是我实际撞过的)
完整表格见 交付物清单(对照 #3893 验收标准)
分支还在,可取用对比git fetch origin issue-3893-tiny-line
git show origin/issue-3893-tiny-line:charts/tiny-line.md
git show origin/issue-3893-tiny-line:evals/cases/tiny-line.jsonl
|
What this adds
charts/tiny-line.md— 图表选型、数据要求、常见变体、样式自定义、易错点与完整案例examples/tiny-line/— 多个可运行示例(基础场景 + 常见变体,G2 v5 Spec API,数据自包含)evals/cases/tiny-line.jsonl— ≥10 条代表性评测用例skills/g2plot-v3/SKILL.md— 选型决策树新增tiny-line入口README.md/README.zh-CN.md— 图表支持列表Checks
Scope
tiny-line一种图表,未改动其他既有图表文档或示例@antv/g2v5 +new Chart({ container, autoFit: true })+chart.render(),无 v4/v2 APICloses part of #3893