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
饼图模式下 color 配置成值对应的字段,生成的图例是连续性图例,这个时候如果配置了label,只显示最后一个 #3160
Labels
Comments
查看了源码
在color对应字段的scale 为 linear的时候 scale.isCategory = false。 G2/src/component/labels.ts
由于 lable列表中,id都是“1” 循环litem生成shape的时候总是覆盖。所有一直只显示最后一个的label |
@jefferyssy 是否有意愿来一个 pr。 |
jefferyssy
added a commit
to jefferyssy/G2
that referenced
this issue
Mar 26, 2021
3 tasks
visiky
added a commit
that referenced
this issue
Apr 10, 2021
color 字段为 linear 类型时,不会存入 groupScales,导致获取 label-id 不唯一 closed: #3160
hustcc
pushed a commit
that referenced
this issue
Apr 12, 2021
* fix(issue-3160): 修复饼图使用连续型图例,标签无法展示 color 字段为 linear 类型时,不会存入 groupScales,导致获取 label-id 不唯一 closed: #3160 * fix(spider): 修复 get 获取属性值,会对 dot 进行解析 * test: 补充 bugs 单测 * fix: 修改 cr 建议,不需要重新生成
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
Steps to reproduce
将 color从item 改成 item
这个时候是连续性图例,展示也正常,当时 label 配置不正确了
The text was updated successfully, but these errors were encountered: