antvis / antvis/F2

饼图文案通过label1OffsetY设置偏移量,点击事件无法获取,并且设置lineHeight不生效

Open
#1,825 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [x] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vigorous-sun-g3r7rl)

### Steps to reproduce
1.点击偏移量位置,onclick事件没有响应。
2.设置lineHeight不生效

| Environment | Info |
|---|---|
| f2 | 5.0.29 |
| System | - |
| Browser | - |

---
期望点击偏移量位置也能获取点击事件,或者能设置文案行高从而点击整个文案区生效也可以。

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction using F2 5.0.29 and reproduce the pie-chart label behavior around label1OffsetY and lineHeight. Investigate the label interaction and layout behavior shown there; the issue is done when clicking the offset label responds, or when the text line height makes the full label area interactive.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.