0
我正在使用anychart api的最新版本。我需要一些事件AnyChart的圖表繪製:需要檢查anyChart繪圖是否已完成
- 檢查表是否在DOM添加或不
- 跳跳虎等功能後,圖繪製完成,所以我可以得到圖
正確的base64需要一些功能其中講述了該圖表在DOM上添加並完全創建。
我正在使用anychart api的最新版本。我需要一些事件AnyChart的圖表繪製:需要檢查anyChart繪圖是否已完成
正確的base64需要一些功能其中講述了該圖表在DOM上添加並完全創建。
您可以使用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方法相同的方式使用。
對不起,這不是工作。我需要找出圖表的繪製完成或沒有點擊另一個按鈕 –
@ kushal-jain此示例http://jsfiddle.net/wxw9pcqx/沒有按鈕,它聽圖chart繪製事件,並繪製完成時獲取base64 。 –
對不起,你明白它錯了,我想按鈕點擊 –