antvis / antvis/G2Plot

在柱状图中无法设定slider的padding

Open
#2,600 2 comments 0 reactions 0 assignees View on GitHub
Component Slider
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

* **G2Plot Version**:2.3.18
* **Platform**:g2plot 2.x
* **Mini Showcase(like screenshots)**:
* **CodePen Link**:https://codesandbox.io/s/festive-maxwell-2irjk?from-embed=&file=/index.ts

![image](https://user-images.githubusercontent.com/1066837/120432128-0e801b80-c3ac-11eb-85e5-cba182017fc3.png)
在柱状图中引入slider后,在不设定外层padding的情况下,设定slider的padding能够生效;在设定了外层的padding后,再去设定slider的padding出现不生效的情况,导致slider都与横轴重叠在一起了。有没有什么办法可以设定拉开slider与横轴的间距的?

Contributor guide

Open the contributing guide

Research direction

Reproduce the chart behavior in the linked CodeSandbox using G2Plot 2.3.18, comparing slider padding with and without outer chart padding. Trace the chart and slider layout from the reproduction; the issue is done when slider padding consistently creates visible space from the horizontal axis while outer padding is set.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.