Commit 7ec45fab authored by frank.xa.zhang's avatar frank.xa.zhang

add demo for orgChart -- frank

parent 2541060b
......@@ -10,7 +10,7 @@
{
'name': 'BVI 1 Limited', 'wins': '3',
},
{ 'name': 'Hong Kong 1 Limited', 'wins': '4' }
{'name': 'Hong Kong 1 Limited', 'wins': '4'}
]
}
]
......@@ -21,10 +21,16 @@
'nodeContent': 'name',
'direction': 't2b',
'createNode': function ($node, data) {
if (data.wins === "1")
if (data.wins === "1") {
$node.children('.title').html('<img src="A.png" style="width:100%">');
$node.hide();
}
else
$node.children('.title').html('<img src="2.png" style="width:100%">');
},
'initCompleted': function ($chart) {
console.log($chart);
$chart.children().children('.lines').hide();
}
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment