Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异步多次render和clear,出现不能渲染 #6625

Open
sanye-huang opened this issue Mar 5, 2025 · 0 comments
Open

异步多次render和clear,出现不能渲染 #6625

sanye-huang opened this issue Mar 5, 2025 · 0 comments
Labels
waiting for maintainer Triage or intervention needed from a maintainer

Comments

@sanye-huang
Copy link

测试案例

`
import { Chart } from '@antv/g2';

const chart = new Chart({ container: 'container' });

chart.options({
type: "interval",
data: [
{ genre: "Sports", sold: 0 },
{ genre: "Strategy", sold: 115 },
{ genre: "Action", sold: 120 },
{ genre: "Shooter", sold: 350 },
{ genre: "Other", sold: 150 },
],
encode: { x: "genre", y: "sold", color: "genre" },
style: { minHeight: 50 },
});

chart.render();

setTimeout(() => {
chart.clear();
chart.options({
type: "interval",
data: [
{ genre: "Sports", sold: 0 },
{ genre: "Strategy", sold: 115 },
{ genre: "Action", sold: 120 },
{ genre: "Shooter", sold: 350 },
{ genre: "Other", sold: 150 },
],
encode: { x: "genre", y: "sold", color: "genre" },
style: { minHeight: 50 },
});
chart.render();
}, 10)
`

@github-actions github-actions bot added the waiting for maintainer Triage or intervention needed from a maintainer label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for maintainer Triage or intervention needed from a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant