charts icon indicating copy to clipboard operation
charts copied to clipboard

feat(Echarts): allow option override children generation

Open MarvelSQ opened this issue 2 years ago • 2 comments

Feature

option should have the ability to overwrite the option generated by child components.

<MapChart option={{}}>
  <VisualMap .../>
</MapChart>

MarvelSQ avatar Jul 12 '23 07:07 MarvelSQ

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

vercel[bot] avatar Jul 12 '23 07:07 vercel[bot]

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?

SevenOutman avatar Jul 17 '23 04:07 SevenOutman