apache / apache/echarts

[Feature] Using Graph type and Force layout provide a way to stop auto layout

Open
#19,493 4 comments 0 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

When using type `graph` with layout `force` it provides a `draggable` option, but this option is pretty useless since whenever a node is dragged it immediately jumps back to the original place.
Expected behavior, to let the user drag and "reorder" the layout.

### What does the proposed API look like?

Extend the [`force`](https://echarts.apache.org/en/option.html#series-graph.force) configuration with "maxTime" that will stop auto layout after this time. Will also be very helpful to stop very long initial layout in large graphs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.