apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.21k stars 19.61k forks source link

[Feature] Put Zoomable Background Picture Behind Graph #19816

Open kp565 opened 5 months ago

kp565 commented 5 months ago

What problem does this feature solve?

I want to have a graph in grafana with a topology drawing behind it for better understanding. I want to be able to zoom in with the nodes still being in the same position relating to the image

What does the proposed API look like?

currently I am trying to incorporate wheelzoom (http://www.jacklmoore.com/wheelzoom/) unsuccessfully

with this feature it could be as simple as declaring the image source and if the graph roam attribute is true or 'scale', the image would move with it

helgasoft commented 5 months ago

using symbol - Demo. Will move ok with pan, not so good for zoom.

image

helgasoft commented 5 months ago

using map is better - Demo, with a catch - zoom/pan center has to be in both bounding boxes of map and graph. In the example two such center points are in front of eyes and in front of front legs. image