Skip to content

fix: correct line chart axis breaks - #4753

Open
xile611 wants to merge 2 commits into
developfrom
codex/fix-4461-series-break
Open

xile611 wants to merge 2 commits into
developfrom
codex/fix-4461-series-break

Conversation

@xile611

@xile611 xile611 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤔 这个分支是...

  • Bug fix
  • 功能增强
  • 网站/文档更新

🔗 相关 issue

Fixes #4461

💡 问题与修复

  • 线性轴在 scopeType: 'length' 下按最终轴域计算各段长度,显式轴界和留白会参与分配。用 issue 原始数据验证,截断 [120, 23100] 后,保留的两段 [-20, 120] 和 [23100, 23120] 分到的高度之比为 7:1。
  • 系列截断扩展支持 appendSeriesBreakConfig(spec, { span: 'region' }),沿整个绘图区绘制锯齿。中英文系列截断指南提供了可运行的折线图示例。Issue 中的预期效果

📝 Changelog

Language Changelog
English Allocate axis-break segments according to the final axis domain and support plot-wide break markers.
中文 修复折线图断轴的区间长度分配,并支持绘图区截断标识。

☑️ 自测

  • Node.js 22.23.3。主包和扩展包的 npm run compile 通过,27 个断轴相关单测通过。
  • 推送钩子 rush test --only tag:package 重跑通过,执行的四个包共 1,339 个单测通过。首次运行时 circularProgress 和 mark-line-coordinate 出现图元注册错误,未修改的 origin/develop 和本分支重跑均通过。
  • node packages/vchart/scripts/visual-test.mjs 比较提交 41709db30 和官方 develop 基线 6869036f4,完整执行 274 个用例。273 个既有用例无差异。新增的 axis-break-length-line 在旧基线复现错误(截断位置 3.06 px,期望 66.5 px),当前提交通过,报告标为 new_baseline,因此命令退出码为 1。
  • 已更新中英文文档、可运行示例、扩展类型、回归用例和 Rush 变更日志。
  • BugServer Photo 待平台检查。本次新增用例的 BugServer ID 待项目管理员补充。

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

VisActor 工作流(CN):blocked

当前提交:0daba63122e20285968b6c2460340331d0c9a5a7

三项检查建议与 BugServer 人工确认

@visactor-review-bot visactor-review-bot Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最新复查提交: 0daba63

未发现可确认的新问题。

@visactor-review-bot

visactor-review-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

VisActor 工作流

结论:流程受阻,请处理待办事项。
当前提交:0daba63;比较基线:6b70810。
环境:CN;更新时间:2026-12-01 18:37:13(UTC+8)。

检查项 状态 关键结果
CR ✅ passed 待处理 0;接受风险 0 查看结果
单测 ✅ passed 必要单测 job 必须实际执行并成功 查看结果
Playwright ⚠️ blocked 尚未执行;冻结全量用例清单或摘要不符
Photo(原 BugServer / UNIC) ⏳ pending —

Photo 独立报告:流程完成不代表 Photo 通过。 差异解释不决定接受;合入前保存的选择可在人工 Merge 后更新基准,Photo 不阻断合入。

请核对 BugServer 默认全选清单,改选后保存,再手动 Merge;Approve 可选,仅记录操作。
Bot 仅提供 CR、单测、Playwright 三项检查建议,不强制阻止合入。
未 Approve,可直接 Merge。

Photo 基准选择尚未保存;不影响三项检查建议或人工合入。
等待完整报告及逐项解释;没有有效授权时不更新基准。

图片差异解释(0 项)

暂无已解释差异。

合入后 Photo 基准更新清单

没有已授权的基准更新。

版本与合入后状态

当前提交:0daba63122e20285968b6c2460340331d0c9a5a7;比较基线:6b70810bce4aecbc649e29e63c1bc05e5e08daca。

CN 结果仅证明上述实际范围;完整报告和原始差异继续保留。

Count only observations strictly inside each segment for length-based
axis breaks. Cover an observation equal to the upper break bound.

Validation: 28 related Jest tests passed. The full visual regression
command (node packages/vchart/scripts/visual-test.mjs) compared 275 cases
against develop at 4ef41af. Of those, 274 had no difference. The
axis-break-length-line case passed locally and was marked new_baseline
because the develop build failed the intended axis-length assertion.
@xile611
xile611 force-pushed the codex/fix-4461-series-break branch from bf97776 to 0daba63 Compare November 26, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] axes break cannot function properly

1 participant