VisActor / VisActor/VChart

[Feature] 更优雅的图例翻页图标配置方式

Open
#4,458 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?
  1. 配置legends[].pager.handler.preShape / nextShape后,仅在水平方向上生效,垂直方向上不会自动旋转,期望可以自动应用旋转,或者启用一个autoRotate的配置项控制
  2. legends[].pager.handler.style.symbolType被弃用,但是翻页icon,理论上只需要提供一个默认方向的icon,其他方向旋转即可。期望可以重新启用,并添加自动复用和旋转处理。
What does the proposed API look like?

legends[].pager.handler.autoRotate: boolean;
legends[].pager.handler.shape: string;

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 pager handler implementation and its existing shape, symbolType, and orientation handling. Compare horizontal and vertical pager rendering against the proposed autoRotate and shape options; done means a default icon can be reused and rotated correctly in both directions, with the existing behavior preserved where appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.