antvis / antvis/G2Plot

🐛 [BUG]设置timeCat,brush-x无法使用

Open
#3,798 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

设置timeCat,brush-x无法使用
### 📷 Step to reproduce
```
import { Line } from '@antv/g2plot';

fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38ccf184.json')
.then((res) => res.json())
.then((data) => {
const line = new Line('container', {
data,
padding: 'auto',
xField: 'Date',
yField: 'scales',
xAxis: {
type: 'timeCat',
},
interactions: [
{
type: 'brush-x'
}
]
});

line.render();
});

```

Contributor guide

Open the contributing guide

Research direction

Start by running the provided Line chart reproduction with xAxis.type set to timeCat and the brush-x interaction enabled. Trace the brush-x interaction and timeCat axis behavior to identify why brushing cannot be used; done means the example supports brush selection without breaking the time-based x-axis.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.