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

柱状图数据为null, 会影响旁边柱子的tooltip #3732

Open
gungun0613 opened this issue Jan 15, 2024 · 0 comments
Open

柱状图数据为null, 会影响旁边柱子的tooltip #3732

gungun0613 opened this issue Jan 15, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@gungun0613
Copy link

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

const data = [
{ year: 56, sales: 12540 },
{ year: 26, sales: 5954 },
{ year: 12, sales: 2345 },
{ year: -5, sales: null },
{ year: 0, sales: null },
];

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

chart.interval().data(data).encode('x', 'year').encode('y', 'sales');

chart.render();

红色框框里面的柱子不显示tooltip

@gungun0613 gungun0613 added the Bug Something isn't working label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant