Skip to content

Resize issue with force graph : nodes are out of the canvas #9954

@samfrach

Description

@samfrach

Version

4.2.0-rc.2

Reproduction link

https://echarts.baidu.com/examples/editor.html?c=graph-force

Steps to reproduce

on the demo site :

  1. select only the first nodes in the legend (only the red box must be enabled)
  2. then you have a central node with 7 satellites
  3. zoom so that the "star" fills 100% of your canvas
  4. resize your browser window to be for example 30% smaller
    the nodes are out of the canvas.. and can't be seen anymore

What is expected?

a way to get them black (even if the user has to click on a kind of "center the nodes" icon)

What is actually happening?

it is out of the box


I am using it with ngx-echarts

Metadata

Metadata

Assignees

Labels

staleInactive for a long time. Will be closed in 7 days.support

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions