echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] chart type 'graph' drag area is too limited

Open skayi opened this issue 3 years ago • 8 comments

Version

4.8.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=graph-simple

Steps to Reproduce

image

Cannot drag chart outside red box

Current Behavior

can drag chart only inside red box

Expected Behavior

can drag chart inside & outside red box

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

skayi avatar Jun 14 '22 06:06 skayi

This is by-design but I do have similar feelings that we should provide a way to enable the roaming outside of component bounding box if it shall not be the default behavior. Similar for map.

I remember having this discussion with @100pah and @pissang who may have different opinion. Maybe it's time to start new discussion on this.

Ovilia avatar Jun 14 '22 07:06 Ovilia

I really need this feature @Ovilia 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

skayi avatar Jun 14 '22 07:06 skayi

Is there a discussion/status we can follow for updates on this? The current behaviour feels really unintuitive to me so trying to find a solution 🙏

warflash avatar Aug 05 '23 21:08 warflash

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.

github-actions[bot] avatar Aug 05 '25 21:08 github-actions[bot]

This should not be closed imo, atleast not without linking to the mentioned possible new discussion

warflash avatar Aug 05 '25 21:08 warflash

Agree. When dragging the map the restricted bounding box is counterintuitive

giacomotontini avatar Aug 06 '25 12:08 giacomotontini

Image

In this bigger graph, more or less only the area marked in red is draggable. The rest is not. I think the draggable area should at least include all nodes.

elya5 avatar Nov 20 '25 12:11 elya5

Ah, roamTrigger: 'global' fixed that for me.

elya5 avatar Nov 20 '25 12:11 elya5