echarts [Bug] 图表左右两侧默认会有个padding,这个有配置可以去掉么,想canvas都用来显示图表内容

qltillow  于 2个月前  发布在  Echarts
关注(0)|答案(4)|浏览(36)

Version

5.22

No response

Steps to Reproduce

[Bug] 图表左右两侧默认会有个padding,这个有配置可以去掉么,想canvas都用来显示图表内容

Current Behavior

[Bug] 图表左右两侧默认会有个padding,这个有配置可以去掉么,想canvas都用来显示图表内容

Expected Behavior

[Bug] 图表左右两侧默认会有个padding,这个有配置可以去掉么,想canvas都用来显示图表内容

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

zbdgwd5y

zbdgwd5y1#

@L-value It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] There will be a padding on the left and right sides of the chart by default, this configuration can be removed, I want the canvas to be used to display the chart content

BODY

Version

5.22

No response

Steps to Reproduce

[Bug] There will be a padding on the left and right sides of the chart by default. Can this be removed by configuration? I want the canvas to be used to display the chart content

Current Behavior

[Bug] There will be a padding on the left and right sides of the chart by default. Can this be removed by configuration? I want the canvas to be used to display the chart content

Expected Behavior

[Bug] There will be a padding on the left and right sides of the chart by default. Can this be removed by configuration? I want the canvas to be used to display the chart content

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

dojqjjoe

dojqjjoe2#

可以设置 boundaryGapfalse 。或者如果你指的不是坐标轴留白,可以配置一下 grid

bq8i3lrv

bq8i3lrv3#

感谢 配置后确实有效果了,但是发现如果y轴如果有单位 还是会距离左侧有些空隙

0md85ypi

0md85ypi4#

但是发现如果y轴如果有单位 还是会距离左侧有些空隙

这个倒是,好像现在还不太好控制轴名称 axis.name 的偏移量,也许后面会优化一下,不过优先级可能并不太高。

相关问题