antvis / antvis/F2

图例和图表之间的间距过大

Open
#1,047 1 comment 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.

### What problem does this feature solve?
图例和图表之间的间距过大,且不能设置,希望可以设置

### What does the proposed API look like?
chart.legend({
position: 'top',
top: -10
});

Contributor guide

Open the contributing guide

Research direction

Start with the chart.legend API and the code that positions legends relative to the chart; no file or test is named in the issue. Confirm how the proposed top spacing option should be interpreted, then add coverage showing that the configured spacing is applied when the legend is positioned above the chart.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.