feat: add align option to radar chart#301
Merged
Merged
Conversation
Add new `align` boolean option to radar chart that controls whether all dimensions share the same scale. When true, dimensions are aligned to the maximum value for absolute value comparison; when false, each dimension scales independently.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #301 +/- ##
==========================================
+ Coverage 81.94% 82.00% +0.06%
==========================================
Files 43 43
Lines 2044 2051 +7
Branches 34 34
==========================================
+ Hits 1675 1682 +7
Misses 367 367
Partials 2 2
🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new 'align' property to the radar chart configuration in both the JSON schema and the Zod schema, allowing for either shared or independent scaling across dimensions. Feedback was provided to simplify the property's description to improve readability and maintain consistency between the schema definitions.
Shorten the description for the align option while keeping the same meaning.
hustcc
approved these changes
May 6, 2026
Member
|
@q32757468 升级一个版本号。 |
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
hustcc
approved these changes
May 6, 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.
已启动 MCP Inspector 验证效果:

开启align的效果:

https://mdn.alipayobjects.com/one_clip/afts/img/UvC-S4GC31IAAAAASrAAAAgAoEACAQFr/original
关闭align的效果:

https://mdn.alipayobjects.com/one_clip/afts/img/ARWATrAQ1MwAAAAASvAAAAgAoEACAQFr/original