charts
charts copied to clipboard
feat(Echarts): allow option override children generation
Feature
option should have the ability to overwrite the option generated by child components.
<MapChart option={{}}>
<VisualMap .../>
</MapChart>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| charts | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 12, 2023 7:31am |
It's by-design that children takes precedence over option prop, which encourages user to use child components, and only use option prop as fallback when child component does not meet the requirement.
What do you think is the rationale that option prop should take precedence?