antvis / antvis/G2Plot

🤔 如何让y=0的刻度强制显示?目前是自动判断,可能会隐藏

Open
#3,719 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

### 🐛 折线图,尤其是柱状图,零点划界对我们很重要,用辅助线又太丑了,官方文档我没搜到办法

### 💻 这是复现例子

https://codesandbox.io/p/sandbox/silly-bouman-yfg9c7?file=%2Findex.ts%3A16%2C16

### 🏞 能让y轴某一刻度比如y=0强制显示

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction, especially index.ts around line 16, and trace how the y-axis chooses which ticks to render. Done means providing a way for y=0 to remain visible in the line and bar chart cases shown by the reproduction, without relying on an auxiliary line.

Written by the indexing model from the issue text.

Assessment

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