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
/** 获取数据标签的renderer实例 */ protected _getDataLabel(): Label | null { const labelController = this._getElement().get('labelController'); return labelController.labelsContainer ? labelController.labelsContainer.get('labelsRenderer') : null; } // 获取标签点 private _getLabelItems(): TextType[] { const labelsRenderer = this._getDataLabel(); const labelItems = labelsRenderer.get('items'); return labelItems; }
结果 labelItems.length !== data.length
labelItems.length !== data.length
The text was updated successfully, but these errors were encountered:
labelRenderer.get('items')
可以看看能不能搞一个复现的例子,比如在 riddle 上。
Sorry, something went wrong.
暂时没办法在单测上还原
这个问题是G2内的问题
为什么有66个points,返回的labelItems才39个(导致上层获取不到所有的data label)
做了位置调整后 被遮挡的label不建议直接过滤掉吧?
看起来像是g2的逻辑默认过滤掉了,待我排查一下
paleface001
No branches or pull requests
结果
labelItems.length !== data.length
The text was updated successfully, but these errors were encountered: