antvis / antvis/G2

坐标轴中的label名称展示个数可以控制数量吗

Open
#6,003 5 comments 0 reactions 0 assignees View on GitHub
v5
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

目前折线图展示了一年的数据,导致x轴横轴label展示看着很拥挤

### 重现链接

_No response_

### 重现步骤

![image](https://github.com/antvis/G2/assets/102608044/a1dffb1b-2a0a-42b7-838f-ca5fa0ee8933)

### 预期行为

希望下面展示的时间横向摆放,并且数量不需要这么多,类似之前4.x这样
![image](https://github.com/antvis/G2/assets/102608044/e5bea6aa-a114-4d89-b55d-efd9a541674d)

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing the crowded x-axis labels in the one-year line chart and compare the requested result with the 4.x screenshot. Done means the number of displayed labels can be controlled and the time labels are laid out without the reported crowding.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
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.