dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 767 forks source link

Export org chart #374

Open AsiaQuite opened 6 years ago

AsiaQuite commented 6 years ago

Hello, We use https://rawgit.com/dabeng/OrgChart/master/demo/vertical-level.html org chart and add export button. While we export it in an image it was not proper export it cuts the org chart. While we use

$('#chart-container').orgchart({ 'data': datascource, 'nodeContent': 'title', 'verticalLevel': 3, 'visibleLevel': 4, 'exportButton': true });

Please see attached image file. orgchart

If I remove verticalLevel and visibleLevel then it exports entire chart properly.

$('#chart-container').orgchart({ 'data': datascource, 'nodeContent': 'title', 'exportButton': true });

Can you help me to how I can export chart properly?

dabeng commented 5 years ago

Hi @AsiaQuite , feel free to play around with this Demo on codepen.io and tell me your new concern :blush: