antvis / antvis/F2

自定义legend,name中有空格导致justifyContent失效

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

Description

- [ ] 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/p/sandbox/epic-elgamal-d8q97y?file=%2Findex.jsx)

### Steps to reproduce
![image](https://github.com/user-attachments/assets/dd4866ee-9d0b-4ef2-b0cb-06c2b604a926)
![image](https://github.com/user-attachments/assets/23c05602-697f-4725-93e9-937594d0c92c)

| Environment | Info |
|---|---|
| f2 | 5.5.2 |
| System | macos |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start with the CodeSandbox reproduction linked in the issue and inspect the custom legend behavior in F2 5.5.2. Reproduce the case where a legend name contains spaces, then identify why justifyContent is ignored. Done means custom legend items respect justifyContent with names containing spaces.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.