G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

🤔 [x 轴起始&末端位置如何向里走一段距离]

Open deerLoves opened this issue 3 years ago • 6 comments

image

deerLoves avatar Dec 29 '21 13:12 deerLoves

如何手动控制位置?

deerLoves avatar Dec 29 '21 13:12 deerLoves

你想要修改x轴的两端间距?

一个非常基础的问题,文档里面都有提到,下次类似的问题可能会被忽略~ 直接上图,请享用~

image

ntscshen avatar Dec 30 '21 06:12 ntscshen

你想要修改x轴的两端间距?

一个非常基础的问题,文档里面都有提到,下次类似的问题可能会被忽略~ 直接上图,请享用~

image

确实是没翻这么深 不好意思哈

deerLoves avatar Dec 30 '21 13:12 deerLoves

image @ntscshen 请问下Mix要怎么去掉这个间距呢,Mix设置range = [0, 1]并不起作用,如果设置成负值的话移动了但是鼠标hover事件又没了。但是在折线图里面[0, 1]是可以的贴合的

Engelce avatar Jun 16 '22 03:06 Engelce

@Engelce

你把上面nice注释了看看? image

MetaOption.nice

如果你在API中找不到对应字段的描述信息,建议你把源码拉下来,全局搜索一下去找。

ntscshen avatar Jun 17 '22 02:06 ntscshen

image

我还真试过了,总是会有对不齐的情况。。。就很迷,nice美化了个寂寞

Engelce avatar Jun 17 '22 03:06 Engelce