Open Shyam-Chen opened 5 days ago
Hi @Shyam-Chen ⚡
This is an interesting proposition.
Currently, users can opt out of using tooltip, user options (aka toolbar), zoom etc. through the configuration object passed to chart components. The tooltip atomic component is statically imported inside the chart component, and rendered conditionally in the template. Dynamically importing these components instead could be a solution, but they are very small and lightweight, so the gain would be insignificant there.
Please feel free to layout how you would proceed to answer this issue. I think it might require a great amount of rewriting, as the project was not designed to function in such a modular fashion.
Cheers
As the title suggests, is it possible to modularize and import chart components? For example, like ECharts, where components such as
TooltipComponent
,DataZoomComponent
,ToolboxComponent
, etc., are split into separate modules.Details:
Highlight:
Code:
Below is the modular syntactic sugar provided by
echarts
:Below is the modular syntactic sugar provided by
swiper
: