antvis / antvis/G2Plot

🥰 [FEATURE]饼图中图例展示不全

Open
#3,639 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🥰 Features description [Please make everyone to understand it]
在使用饼图时,图例特别多的时候,如果图例的位置设置为 bottom ,且不分页,此时的图里就不会完全展示,目前看来是最多展示5行图例

### 🏞 What problem does this feature solve
此功能可以解决在图例较多的情况下,不做分页处理的时候也可以全部展示图例

### 🧐 What does the proposed API look like

### 🚑 Any additional [like screenshots]
此链接可以看到上述效果
https://codesandbox.io/s/qy6flm?file=/index.ts
在此链接中,将右侧预览视口缩小,会发现最多只展示5行,超出部分会被截取

Contributor guide

Open the contributing guide

Research direction

Open the linked CodeSandbox and reproduce the pie chart with many legends, bottom positioning, pagination disabled, and a narrow preview viewport. Inspect the chart's legend behavior and determine how the full legend can remain visible; done means all legend rows are displayed without being clipped.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.