javascript - How to draw edge label on Sigma.js Graph -


i creating graph using sigma.js library. getting drawn , unable draw edge label on graphs. followed , tried use github library mentioned in following thread :

show edge label in sigma.js

but not elaborate , couldn't through problem.

i use following sample data in json.

{ "edges": [{"source":"19", "target":"3", "id":"abc"}],

"nodes":[ {"label":"a1", "x":-158, "y":-171, "id":"19", "color":"rgb(49,230,186)", "size":15},

{"label":"b1", "x":112, "y":-98, "id":"3", "color":"rgb(138,136,89)", "size":19}] };

how can edge label using sigma.js. provided default feature? if not , steps can take same. if needed, suggestion on alternative js library graphs welcome.

you can use plugin https://github.com/jacomyal/sigma.js/tree/master/plugins/sigma.renderers.edgelabels.

there enough info draw label.

!important: set type 'canvas' renderer


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -