echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] Put Zoomable Background Picture Behind Graph

Open kp565 opened this issue 1 year ago • 2 comments

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

kp565 avatar Apr 11 '24 08:04 kp565

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

image

helgasoft avatar Apr 12 '24 07:04 helgasoft

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

helgasoft avatar Apr 12 '24 18:04 helgasoft