dabeng / OrgChart.js

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting nodeContent when using ul as datasource

rezasaberi opened this issue · comments

I have the following ul structure that shows well on the page. It's just I do not know how to display the node contents. Following is what I have tried.

<ul id="ul-data">
  <li title="Project Manager">Reza Saberi
    <ul>
       <li title="Project Associate">Ali Karimi</li>
       <li title="Data Analyst">Ahmad Basir</li>
    </ul>
  </li>
</ul>

and the following is the js:

$('#chart').orgchart({
  'data' : $('#ul-data'),
  'pan': true,
  'nodeContent': 'title'
});