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

map can't relate with other chart in dashboard #2217

Open
ziveen opened this issue Jun 22, 2021 · 0 comments
Open

map can't relate with other chart in dashboard #2217

ziveen opened this issue Jun 22, 2021 · 0 comments

Comments

@ziveen
Copy link
Contributor

ziveen commented Jun 22, 2021

在仪表盘中,当地图与其他widget关联时,当地图存在两个维度时,关联关系不成功。这是因为,地图的searies.data经过格式化,params.dataindex并不能与datasources索引一一对应。因此会表现,点击广东省可能会关联到其他省份。

      if (seriesData) {
        const seriesIndex = series[index] ? series[index].split('&')[0] : null
        return seriesData[seriesIndex] ? seriesData[seriesIndex][item] : []
      }
      return data[item]
    })```
ziveen added a commit to ziveen/davinci that referenced this issue Jun 22, 2021
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