fix: Add DefaultValue to Chart Properties#1760
Conversation
WalkthroughNumerous component schemas in Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@designer-demo/public/mock/bundle.json`:
- Around line 4531-4555: In the legend defaultValue object, rename the incorrect
property "itemWeight" to the correct ECharts property "itemWidth" so the legend
renders properly; locate the "defaultValue" object that contains "show",
"position", "itemGap", "orient", "reverseEvent", "selectedMode", "icon",
"itemHeight", "itemWeight", "textStyle" and replace "itemWeight" with
"itemWidth".
- Around line 4191-4200: The JSON defaultValue object has reversed interval
constraints—minInterval is 12 while maxInterval is 8—violating ECharts'
requirement that minInterval ≤ maxInterval; update the defaultValue object's
minInterval and maxInterval so minInterval ≤ maxInterval (e.g., set
"minInterval": 8 and "maxInterval": 12 or otherwise choose appropriate values)
for the Percent(%) axis entry to ensure valid tick calculation.
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit