Open plainheart opened 3 years ago
It's a very promising feature! But I think we should try not to break the consistency between SVG and Canvas renderer as much as possible. So this should be a feature that canvas also can have.
For API design, since ForeignObject is a concept that only SVG has. It's better to use a more general API like zrender.HTMLElement
.
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
What problem does this feature solve?
For SVG renderer, it would be flexible and creative if allow adding DOM to the chart through
foreignObject
.What does the proposed API look like?
Currently no good idea about how to design the API in ECharts. Here is the proposed usage in zrender.
DOM string
DOM Array
Video
Screenshot