echarts No timed emphasis animations in Graph with layout: "force"

eimct9ow  于 2022-10-26  发布在  Echarts
关注(0)|答案(3)|浏览(263)

Version

5.0.2

https://jsfiddle.net/eskjn6y3/

Steps to reproduce

Make a basic chart with series "graph" (works fine with the les miserables example)
Use layout: "force"
Hover over a node to emphasize; the animation will be instant.

Change layout to "circular"
Animations are now smooth and timed properly.

Adding animation properties etc. doesn't seem to change this.

What is expected?

That layout: "force" graphs will have smooth emphasis transition animations like "none" and "circular" graphs

What is actually happening?

They are all 0 second transitions and look glitchy.

I don't think that this is intentional, but it would make force graphs much nicer to have properly eased transitions.

pftdvrlh

pftdvrlh1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list .

Have a nice day! 🍵

mbyulnm0

mbyulnm02#

Note that it seems that force layout graph get emphasis animations when animationLayout: false

xuo3flqw

xuo3flqw3#

Our code uses a graph with layout: "force" and we are facing this same issue. I had to disable emphasis for now since it just looks too jumpy with it enabled so I would also like to see this issue fixed.

The layoutAnimation: false fix is also not feasible for us, since draggable nodes just do not work right with this set to false.

相关问题