Repository navigation
docs: clarify sequence and extension chart version requirements - #4719
Merged
Merged
Conversation
There was a problem hiding this comment.
最新复查提交: 33a26f3
未发现可确认的新问题;原有条件注册缺失时仍继续渲染的问题待解决:https://github.com/VisActor/VChart/pull/4719#discussion_r4322097995。
xile611
approved these changes
Oct 20, 2026
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.
问题与修改
图表示例和教程没有明确版本要求,切换到旧版运行时会直接调用不存在的扩展注册方法。此 PR 补充 sequence、sequenceAnalysis 和 storyline 的版本说明,并沿用已有 K 线图、3D 图表示例的条件注册方式:使用
if (VChartExtension.registerXXX) { ... },方法存在时调用,不存在时跳过注册。sequence:自 2.2.0 起迁入扩展包;旧版本完整包内置该图表。中英文 8 段 demo 对registerSequenceChart做存在性判断。sequenceAnalysis:自 2.2.0 起支持。更新步骤、介质连线、目标头像 3 个示例的中英文版本。storyline:自 2.1.7 起支持。更新 landscape、portrait、clock、arc、wing 5 个示例的中英文版本。参考与版本依据
docs/assets/examples/zh/candlestick-chart/candlestick-basic.md、docs/assets/examples/zh/chart-3d/bar3d.md、docs/assets/examples/zh/chart-3d/wordcloud3d.md。registerStorylineChart;2.1.7 未导出 sequenceAnalysis,2.2.0 已导出registerSequenceAnalysis。sequence 迁移版本与 v2.2.0 release notes 一致。验证
git diff --check通过。PREFLIGHT_FAILED: Cannot find module 'typescript'处停止,全部用例未执行。上述编译和条件注册检查不等于真实画布渲染测试。