antvis / antvis/F2

折线图和柱状图的tickCount显示不准确

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

Description

使用分组柱状图或者对比折线图都有这个问题
tickCount值比较小时是对应的,但是当接近横坐标最大数量时就会出现数量和tickCount值不一样的问题。这是bug还是为了合理显示这么处理的?
![image](https://github.com/antvis/F2/assets/56187561/0edb7087-2243-496f-84d7-0dc022625a8b)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with a grouped bar chart and a comparison line chart, especially when tickCount approaches the number of x-axis categories. Inspect the axis tick-count handling and compare the rendered tick total with the requested value; done requires either correcting the discrepancy or documenting the intended behavior with a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.