antvis / antvis/G2Plot

🐛 [BUG]直方图设置binNumber时最后一个总是1

Open
#2,917 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

直方图设置binNumber时最后一个总是1。数据量很大时依然是1.且设置数量时,分箱值不整。
![8151627354518_ pic_hd](https://user-images.githubusercontent.com/37700655/127087934-c9c132a8-df7b-44d9-9c10-181b9b18fe82.jpg)
![8141627354429_ pic_hd](https://user-images.githubusercontent.com/37700655/127087941-7f534fea-26cc-4902-be57-c4e1e567bd4d.jpg)

Contributor guide

Open the contributing guide

Research direction

Reproduce the histogram configuration described in the issue with binNumber and a large dataset, using the G2Plot histogram entry point. Inspect how the final bin and non-integer bin values are calculated; done means the requested bin count is respected and the final bin is not always 1.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.