antvis / antvis/G2Plot

🐛 [BUG] 双轴图的 scale 计算问题

Open
#2,736 0 comments 0 reactions 0 assignees View on GitHub
Bug DualAxes Plot
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description [Please make everyone to understand it]

柱形图可以完美计算比例

![image](https://user-images.githubusercontent.com/7971419/127289781-94a3e86d-efef-4a1f-ad0a-b4312c61d317.png)

但是双轴图,总会少计算一个

![image](https://user-images.githubusercontent.com/7971419/127289877-fe6c1394-f582-449e-90cf-960c5b56ebdd.png)

### 💻 Link to minimal reproduction

Please provide a link by forking these links [g2plot](https://codesandbox.io/s/g2plot-reproduction-template-gyej1) or GitHub repo. What is a minimal reproduction, and why is it required?

### 📷 Step to reproduce

### 🏞 Expected result

双轴图可以计算出 1000

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported dual-axis chart case and tracing its scale calculation, comparing it with the bar-chart behavior described in the issue. Done means the dual-axis chart calculates the expected value of 1000 and the regression is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

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