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
/** * A recreation of this demo: https://observablehq.com/@d3/bar-chart */import{Chart}from'@antv/g2';constchart=newChart({container: 'container',theme: 'classic',autoFit: true,});chart.interval().data({type: 'fetch',value:
'https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv',}).encode('x','letter').encode('y','frequency').axis('y',{labelFormatter: '.0%'});chart.render();setTimeout(()=>{chart.clear();console.log(123);chart.render();},2000);
额外信息
G2 5.0.15 版本
The text was updated successfully, but these errors were encountered:
问题描述
chart.clear 之后调用 chart.render ,无法重新渲染,控制台报 theme 错误。(在 chart.render 前调用 chart.interval 等重新设置也一样)
期望结果
可以正常 clear 重绘
如何重现
官方代码修改
额外信息
The text was updated successfully, but these errors were encountered: