-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Labels
enhancementimproving existent functionality or performance relatedimproving existent functionality or performance relatedfeature requestpriority low
Description
Describe the bug
When setting link colors in the graph data for directed graphs, the marker/arrowhead's color stays the color that was defined in the global graph config. This also happens when link colors aren't explicitly set in the graph config.
To Reproduce
Steps to reproduce the behavior:
- Go to the sandbox
- Tick the
directedbox - In the
link.colorbox, set the color to anything that isn't the default#d3d3d3 - The links themselves should now be colored, but the markers/arrowheads stay gray
Expected behavior
Markers should update to use the color of the link they're attached to.
Screenshots
With no link color set in the graph config:

With link color set to #0000ff in the graph config:

Environment:
- OS: Windows 10
- Browser: firefox
- Version: 70.0
- Node version: 12.13.0
- react-d3-graph version: 2.3.0
- d3 version: 5.12.0
- react version: 16.11.0
Additional context
The code used to create the graph in the above screenshots is available
Metadata
Metadata
Assignees
Labels
enhancementimproving existent functionality or performance relatedimproving existent functionality or performance relatedfeature requestpriority low