antvis/G2

[v5] 更改数据重新渲染后坐标轴的labelTransforms转换错乱 #4723

yshenhua posted onGitHub

问题复现条件:为坐标轴设置labelTransforms: [{ type: "hide", keepHeader: true, keepTail: true }],更改数据后重新渲染。

Demo:https://codesandbox.io/s/exciting-ptolemy-d1ib2g?file=/src/index.js:255-270

首次渲染以及不更改x轴数据重新渲染符合预期:

Snipaste_2023-03-03_12-50-16

但是更改x轴数据重新渲染后,x轴的labelTransforms转换就出现错乱了:

Snipaste_2023-03-03_12-51-17


5.0.0-rc.1 以上版本已解决

posted by Aarebecca about 2 years ago

Fund this Issue

$0.00
Funded

Pull requests