4
我使用下面的代碼渲染zingchart它工作正常。如何從特定div中取消/分離/刪除ZingChart庫?
zingchart.render({
id : 'myChart',
data : myConfig,
height: 400,
width: "100%"
});
現在,在一些場合,我想未呈現或分離它。我的意思是當我點擊一些特定的地方,這個ID爲myChart
的div應該是空的,並且zing圖表應該從它移除。
我該如何實現它?
我試過這個jQuery代碼。
$("#myChart").html('');
在此先感謝。
請對以下問題看看http://stackoverflow.com/questions/39786277/can-i-render-multiple-charts-by-single-renderfunction-達到合適的破壞call-in-zing-charts –
感謝它爲我工作,我也添加了github上的明星 –