antvis / antvis/G2Plot

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

Open
#3,732 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the supplied Chart and interval reproduction using the data array where sales is null. Inspect the tooltip behavior for null-valued bars and their neighboring bars. Done means the null-valued data no longer prevents the adjacent bars from displaying their tooltips.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.