antvis / antvis/G2

坐标轴标题设置顶部字体方向不会自动调整

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

Description

### 问题描述

Y轴设置标题位置 top的时候,标题文字并没有自动调整成从左到右的方向,如果把Y轴设置到左侧就正常

### 重现链接

https://codesandbox.io/s/3m6r9d?file=/index.ts

### 重现步骤

_No response_

### 预期行为

右侧的Y轴标题在位置设置成top的时候,标题方向能自动调整成从左向右

### 平台

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

### 屏幕截图或视频(可选)
![image](https://github.com/antvis/G2/assets/79243264/b18cc2c3-2b0b-4e9f-b747-29d7477109f7)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction in index.ts and verify the Y-axis title behavior when its position is set to top, comparing it with the left-side case. Trace the axis-title positioning and direction handling, then confirm that a right-side Y-axis title at top reads left to right without regressing the existing left-side 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.