I tried this on my application and it wouldn't display the tree. Finally found that in the javascript for on-render to actually make the graph, you hard code the container id its being put in. You can't do that as that id can and will change. I made the container ID an input on the javascript and passed in "#" + ochart.id and it worked in my application.