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

master 最新代码,分面图例过滤规程中,图例项会减少 #2232

Closed
simaQ opened this issue Mar 27, 2020 · 3 comments · Fixed by #2263
Closed

master 最新代码,分面图例过滤规程中,图例项会减少 #2232

simaQ opened this issue Mar 27, 2020 · 3 comments · Fixed by #2263
Assignees
Labels

Comments

@simaQ
Copy link
Contributor

simaQ commented Mar 27, 2020

分面图例过滤 BUG

@simaQ simaQ added the Bug label Mar 27, 2020
@simaQ simaQ self-assigned this Mar 27, 2020
@hustcc
Copy link
Member

hustcc commented Mar 27, 2020

类似问题 #2204

@dxq613
Copy link
Member

dxq613 commented Mar 27, 2020

都是同一个问题出现的,现在两个方案:

  1. 生成 legend 的view 缓存一下,更新的时候,从 view 上重新获取数据即可
    2.直接读取 chart 上 sync 后的 scale

@hustcc
Copy link
Member

hustcc commented Apr 2, 2020

都是同一个问题出现的,现在两个方案:

  1. 生成 legend 的view 缓存一下,更新的时候,从 view 上重新获取数据即可
    2.直接读取 chart 上 sync 后的 scale

发现这个问题和 下午你说的那个还不是一个问题。分面中图例项减少的原因是:

因为之前 facet subview 没有做 update,所以每次 chart.render(true) 的时候,实际上是销魂 facet subviews,然后重新创建,所以设置进去的 filter 都没有清理了。

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

Successfully merging a pull request may close this issue.

3 participants