antvis / antvis/G2Plot

🤔 Y Axis auto min max values

Open
#2,958 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 I cant configure Y Axis for auto `min` and `max` values. Its always starting from 0. Using `meta` works just for X axis.

### 💻 [Codesandbox](https://codesandbox.io/s/charming-tamas-h6wls?file=/src/App.js)

![linechart](https://i.imgur.com/yVUasyh.png "linechart")

* **G2Plot Version**: 2.2.11
* **Platform**: Windows

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and its Y-axis configuration, then trace how G2Plot 2.2.11 handles Y-axis min and max compared with the working X-axis meta configuration. Done means the Y axis can use automatic min and max values instead of always starting at 0, with the linked chart reproducing the corrected behavior.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.