If you ever needed to visualize hierarchical data with JavaScript in the browser, the library dGraph will help you out. It will draw a layered directed graph as SVG based on the Sugiyama algorithm. Checkout dGraph from GitHub.
speich
.net