2016-11-28 87 views

回答

0

您可以使用https://api.anychart.com/latest/anychart.enums.EventType上市chartDraw事件:

chart.listenOnce('chartDraw', function(){ 
    chart.getJpgBase64String(function (response) { 
     console.log(response); 
    }); 
}); 

下面是一個簡單http://jsfiddle.net/wxw9pcqx/https://api.anychart.com/latest/anychart.core.Chart#getJpgBase64String功能,它可以與所有其他getXXXBase64String方法相同的方式使用。

+0

對不起,這不是工作。我需要找出圖表的繪製完成或沒有點擊另一個按鈕 –

+0

@ kushal-jain此示例http://jsfiddle.net/wxw9pcqx/沒有按鈕,它聽圖chart繪製事件,並繪製完成時獲取base64 。 –

+0

對不起,你明白它錯了,我想按鈕點擊 –