You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi @coder-stan-lv, to redraw chart, dont empty chart container div using: $('#chart-container').html('')
use this solution:
make chart with empty datasource when your page is ready for first time:
@dabeng
$('#chart-container').orgchart({
'data': this.datascource,
'nodeContent': 'title',
'pan': true,
'zoom': true,
'toggleSiblingsResp': true
});
使用jquery方式初始化orgchart,缩放功能正常,但是如果在不刷新页面的情况下,将$('#chart-container').html('')清空后再次使用orgchart重新初始化,会提示Uncaught TypeError: Cannot read property 'zoomoutLimit' of undefined
The text was updated successfully, but these errors were encountered: