Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

请问一下5.X版本升级后是不支持针对维度设置size通道了吗 #5156

Closed
zhouhe-1476452306 opened this issue Jun 5, 2023 · 1 comment

Comments

@zhouhe-1476452306
Copy link

4.X 设置颜色通道根据不同year 散点的大小有改变
image
5.0.11 设置颜色通道为维度不是指标时,legendContinuous.js 该文件会有报错,再加上color通道也只能区分颜色大小没有改变
image

@hustcc
Copy link
Member

hustcc commented Jun 5, 2023

5.0 中 size 仅仅支持数值类型,也就是连续的数据。可以这么做:

.encode('size', (d) => Number(d.year))

@antvis antvis locked and limited conversation to collaborators Jun 5, 2023
@hustcc hustcc converted this issue into discussion #5158 Jun 5, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants