Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This example has text inside the boxes. I use svg's .getBBox() to obtain width/height for each label.

http://twitter.github.io/labella.js/with_text.html

The max width parameter is optional. I am not sure what are you trying to do with the graphs though. This library is not for graphs or trees. It's for points on single axis.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: