var data = {
"nodes": [{
"id": "n1",
"loaded": true,
"style": {
"label": "Node1"
}
}, {
"id": "n2",
"loaded": true,
"style": {
"label": "Node2"
}
}],
"links": [{
"id": "l1",
"from": "n1",
"to": "n2",
"style": {
"fillColor": "red",
"toDecoration": "arrow"
}
}, {
"id": "l11",
"from": "n1",
"to": "n2",
"style": {
"fillColor": "red",
"toDecoration": "arrow"
}
}, {
"id": "l111",
"from": "n1",
"to": "n2",
"style": {
"fillColor": "red",
"toDecoration": "arrow"
}
}, {
"id": "l114",
"from": "n1",
"to": "n2",
"style": {
"fillColor": "red",
"toDecoration": "arrow"
}
}]
};
var t = new NetChart({
container: document.getElementById("demo"),
area: {
height: 350
},
data: {
preloaded: data
},
info: {
enabled: true,
linkContentsFunction: function(data, link, callback) {
return link.id;
}
}
});
Asked
Active
Viewed 51 times
0

Narendra Jadhav
- 10,052
- 15
- 33
- 44

Aswitha
- 1
-
1Welcome to StackOverflow! Please read the info about [how to ask a good question](https://stackoverflow.com/help/how-to-ask) and [how to give a reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). This will make it much easier for others to help you. – Aditi Apr 06 '18 at 07:01
1 Answers
0
This question has been answered on zoomcharts forum:
https://forum.zoomcharts.com/t/want-single-link-connection-even-there-are-multiple-links/2072/6
Basically, you can use one of four methods:
- use
multiLinkProcessor
method to merge the links - use
linkFilter
to omit certain links - use
linkStyle
method to apply certain link-specific styles - use custom
dataFunction
method to pre-process the link/node data before passing it to the success callback.

jancha
- 4,916
- 1
- 24
- 39