Repository navigation
feat(v3): add violin chart component (#3893) - #3912
Closed
DoubleCore wants to merge 3 commits into
Closed
DoubleCore wants to merge 3 commits into
DoubleCore wants to merge 3 commits into
Conversation
Signed-off-by: DoubleCore <doublecore@users.noreply.github.com>
6 of 28 tasks
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.
Author
|
按维护者 @interstellarmt 在 #3893 的协调结论,我保留已 review 的 8 个 PR(#3895/#3897/#3898/#3899/#3900/#3901/#3903/#3905),其余子任务交给其他同学认领,本 PR 关闭让位、不再推进。 交付物完整保留在分支 给其他同学让路,避免重复开发。感谢 @interstellarmt 的协调。 |
Author
|
给后来人的实现笔记(本 PR 已关闭让位,内容保留供参考) 这张图我实现过一版,按维护者协调已关闭让位给其他同学。把踩过的坑整理在这里,省得后来人重新试错。 关键路径没有 chart.options({
type: 'view',
data, // 长表:{ 分类, 数值 }
children: [
{ type: 'density',
data: { transform: [{ type: 'kde', field: '数值', groupBy: '分类' }] },
encode: { x: '分类', y: '数值', size: '...' } },
{ type: 'boxplot', encode: { x: '分类', y: '数值' }, shape: 'violin' },
],
});两个子图必须用同一套 高频易错点(都是我实际撞过的)
完整表格见 交付物清单(对照 #3893 验收标准)
我做过什么(可直接复用)分支 git fetch origin issue-3893-violin
git checkout -b my-violin origin/issue-3893-violin # 直接接手
# 或只取文件
git show origin/issue-3893-violin:charts/violin.md
git show origin/issue-3893-violin:evals/cases/violin.jsonl重写时不必照抄,但建议:
实现上发现我哪里写错了,欢迎直接指出,我关了 PR 但代码还在。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
charts/violin.md— 小提琴图选型、数据要求、常见变体、易错点与完整案例examples/violin/— 可运行示例:基础分布对比(density + KDE + violin boxplot)、极坐标布局evals/cases/violin.jsonl— 15 条代表性评测用例(每行 1 个 JSON 对象)skills/g2plot-v3/SKILL.md— 选型决策树新增violin入口README.md/README.zh-CN.md— 图表支持列表Checks
Scope
violin一种图表,未改动其他既有图表文档或示例@antv/g2v5 Spec API +new Chart({ container, autoFit: true })+chart.render()Closes part of #3893