饼图文案通过label1OffsetY设置偏移量,点击事件无法获取,并且设置lineHeight不生效
- 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
[](https://codesandbox.io/s/vigorous-sun-g3r7rl)
### Steps to reproduce
1.点击偏移量位置,onclick事件没有响应。
2.设置lineHeight不生效
| Environment | Info |
|---|---|
| f2 | 5.0.29 |
| System | - |
| Browser | - |
---
期望点击偏移量位置也能获取点击事件,或者能设置文案行高从而点击整个文案区生效也可以。
Contributor 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