antvis / antvis/F2

分组柱状图使用scrollBar 平移只有下面的x轴数字变了,图表内容没有变化

Open
#1,646 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://f2.antv.vision/zh/examples/column/dodge#dodge](https://f2.antv.vision/zh/examples/column/dodge#dodge)

### Steps to reproduce
/// 数据
data: [
{
name: 'frist',
year: '1951 年',
sales: 38,
},
{
name: 'frist',
year: '1952 年',
sales: 52,
},
{
name: 'frist',
year: '1956 年',
sales: 61,
},
{
name: 'frist',
year: '1957 年',
sales: 145,
},
{
name: 'frist',
year: '1958 年',
sales: 48,
},
{
name: 'frist',
year: '1959 年',
sales: 38,
},
{
name: 'frist',
year: '1960 年',
sales: 38,
},
{
name: 'frist',
year: '1962 年',
sales: 38,
},

{
name: 'second',
year: '1951 年',
sales: 30,
},
{
name: 'second',
year: '1952 年',
sales: 12,
},
{
name: 'second',
year: '1956 年',
sales: 31,
},
{
name: 'second',
year: '1957 年',
sales: 105,
},
{
name: 'second',
year: '1958 年',
sales: 418,
},
{
name: 'second',
year: '1959 年',
sales: 18,
},
{
name: 'second',
year: '1960 年',
sales: 118,
},
{
name: 'second',
year: '1962 年',
sales: 28,
},
]
]

/// 绘图
return (






)

| Environment | Info |
|---|---|
| f2 | 4.0.26 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction link for the dodge column chart and reproduce the issue using the supplied data and ScrollBar configuration in F2 4.0.26. Trace how horizontal scrolling updates the x-axis and chart content; done means dragging the scrollbar updates both the axis labels and the grouped bars.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.