🐛 [BUG]设置timeCat,brush-x无法使用
- 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
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