We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
复现地址:https://codesandbox.io/s/patient-feather-kzqrc?file=/index.ts:1105-1131
麻烦老师看下,轴到轴标签底部的距离能否获取
The text was updated successfully, but these errors were encountered:
@visiky 麻烦老师看下哈~
Sorry, something went wrong.
plot.chart.getController()
plot.on('afterrender', ({view}) => { // views[i] 中 i 为子图索引 const axisController = view.views[0].getController('axis') })
const texts = plot.chart.getController('axis').axisContainer.getChildren()[0].getChildren()[1].getChildren()
通过上述路径能过拿到x轴中每个刻度值的文本对象,然后通过:texts[i].getBBox() 方法获得第i个文本对象的宽高及坐标信息
texts[i].getBBox()
i
Aarebecca
Successfully merging a pull request may close this issue.
复现地址:https://codesandbox.io/s/patient-feather-kzqrc?file=/index.ts:1105-1131
麻烦老师看下,轴到轴标签底部的距离能否获取
The text was updated successfully, but these errors were encountered: