fperucic / treant-js

Treant.js - javascript library for drawing tree diagrams
MIT License
864 stars 314 forks source link

Show text on arrow #160

Closed fwwucn closed 4 years ago

fwwucn commented 4 years ago

Is there any approach to show single line text above the arrow between nodes?

fwwucn commented 4 years ago

I found a solution, just define some styles for tree node: .node-name { font-weight: bold; font-size: 18px; color: red; position: absolute; left: 100%; top: 35%; }