antvis / antvis/F2

F2柱状图y轴最小值和最大值相差过大时,最小值会展示不出来,变成了y零刻度线

Open
#1,115 1 comment 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://antv-2018.alipay.com/zh-cn/f2/3.x/demo/bar/dodge-column.html](https://antv-2018.alipay.com/zh-cn/f2/3.x/demo/bar/dodge-column.html)

### Steps to reproduce

![image](https://user-images.githubusercontent.com/20984566/102310491-0707ba00-3fa6-11eb-9395-7cd9c9533c7e.png)

上图为正常的分组柱状图

![image](https://user-images.githubusercontent.com/20984566/102310554-2868a600-3fa6-11eb-880d-3a978488a414.png)

上图体现出若某个单位值过大时,其他的值展现则成了零

| Environment | Info |
|---|---|
| f2 | 3.7.7 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start with the linked dodge-column reproduction in F2 3.7.7 and compare the normal grouped-column case with the case containing one much larger value. Trace how the chart computes and renders the y-axis range and identify where smaller values become the zero tick. Done means the smaller values remain visible in the reproduction without breaking the normal case.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.