[Feature] 图例单项最大宽度为去掉翻页器的布局空间
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
What problem does this feature solve?
图例项展示宽度目前为整个宽度的百分比,有翻页器时无法很好的通过宽度配置保持单行展示数量
What does the proposed API look like?
maxWidth: '50%'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the legend layout and pagination entry points in the TypeScript codebase, then trace how legend-item widths are calculated when a pager is present. Implement the proposed maxWidth API so percentage widths use the space excluding the pager, and verify that the configured width can preserve the intended single-line item count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100