Is there a way to create a directional network graph using d3js or highcharts .I was able to create a unidirectional network graph on high chart .
What I have with my highchart code is
What I need is
I am not sure if this is possible with highchart or d3js ,I searched through their library but couldn’t find way to add directional arrows . Anyone if has worked on it can please advice . I cant use neo4j because my Backend DB is elasticsearch and I can’t use neo4J .
2
Answers
I suppose the easiest thing to do would be to use d3-graphviz.
There are a ton of options to lay out and/or style the graph.
It’s possible with Highcharts but requires some customization. You can for example wrap the
getLinkPath
method and generate a path with an arrow.Example: https://jsfiddle.net/BlackLabel/pk8y49qw/
Or add an arrow to already existing paths.
Example: https://jsfiddle.net/BlackLabel/vk81xbn3/
Useful threads:
https://www.highcharts.com/forum/viewtopic.php?t=45331
https://github.com/highcharts/highcharts/issues/12781
Docs: https://www.highcharts.com/docs/extending-highcharts/extending-highcharts