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
最后一个,也就是三角尖图形的label位置计算错误,有细微偏移
正常显示最后一个label
The text was updated successfully, but these errors were encountered:
src/geom/label/geom-label.js (328行)
if (point.shape === 'pyramid' && !point.nextPoints && point.points) { point.points.forEach(function (p) { p = coord.convert(p); if ((Util.isArray(p.x) && !point.x.includes(p.x)) || (Util.isNumber(p.x) && point.x !== p.x)) { label.x = (label.x + p.x) / 2; } }); }
这段代码计算错误, 三个点(三角形),累计计算会出现错误。
Sorry, something went wrong.
fix: 修复漏斗图label 问题:更新以及尖底漏斗图最后一个label的位置错误。Closed #1847
5ba62b7
ef0db08
e975ecc
cfd7c0a
simaQ
Successfully merging a pull request may close this issue.
Reproduction link
Steps to reproduce
What is expected?
最后一个,也就是三角尖图形的label位置计算错误,有细微偏移
What is actually happening?
正常显示最后一个label
The text was updated successfully, but these errors were encountered: