react-d3-graph icon indicating copy to clipboard operation
react-d3-graph copied to clipboard

Performance issue with directed graphs + opacity on link/node

Open jadenmazzone opened this issue 4 years ago • 0 comments

Describe the bug After switching to a directed graph I've noticed slightly worst performance. When navigating the map it seems to be a bit laggier, and it gets worse as more nodes and connections are added. Is this a known issue?

EDIT: The lag happens when BOTH directed is set to True and "opacity" for link is used. There also seems to be a slight performance issue when setting node opacity as well

To Reproduce Steps to reproduce the behavior:

  1. Set directed = true in config
  2. set opacity: 0.65 in Link config

Environment:

  • OS: macOS
  • Browser: chrome
  • Version: 90
  • Node version: 14.15.4
  • react-d3-graph version: 2.6.0
  • d3 version: 5.16.0
  • react version: 16.13.1

jadenmazzone avatar May 20 '21 23:05 jadenmazzone