Skip to content
New issue

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

出现 :Cannot read properties of undefined (reading 'visible') #1539

Open
xgj1988 opened this issue Apr 4, 2023 · 0 comments
Open

出现 :Cannot read properties of undefined (reading 'visible') #1539

xgj1988 opened this issue Apr 4, 2023 · 0 comments

Comments

@xgj1988
Copy link

xgj1988 commented Apr 4, 2023

for (var _i = 0, dataArray_1 = dataArray; _i < dataArray_1.length; _i++) {
  var data = dataArray_1[_i];
  var record = findDataByPoint(point, data, geometry);
  if (record) {
    var elementId = geometry.getElementId(record);
    var element = geometry.elementsMap[elementId];
    if (geometry.type === 'heatmap' || element.visible) {
      // Heatmap 没有 Element
      // 如果图形元素隐藏了,怎不再 tooltip 上展示相关数据
      var items = getTooltipItems(record, geometry, title, showNil);
      if (items.length) {
        result.push(items);
      }
    }

在 if (geometry.type === 'heatmap' || element.visible) {
这一样会出现 找不到 element 的情况。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant