Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add link with custom color in existing graph (#170)
* fix: Add link with custom color in existing graph When a new link was added in real time by updating an existing graph instance, if it was configured to have a custom color with the 'link.color' property, that value was ignored and the default color was displayed instead. This issue was reported in #169. The source of the problem was that, when generating a d3Link instance in the '_mapDataLinkToD3Link' method, the value of the color property was not kept. Only the source and target values were being added to the d3Link which would actually be rendered in the graph, and the color property was completely lost by the time the graph was to be drawn on the screen. The issue could be solved by adding a color property to the d3Link object. * Whitelist new exposed props * Make _mapDataLinkToD3Link work properly by picking custom props
- Loading branch information