VisActor / VisActor/VChart

[Feature] 图例单项最大宽度为去掉翻页器的布局空间

Open
#4,414 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.