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

g2 动态条形图 颜色排序随Y轴数据变换而变换 #3612

Closed
1 task
GevinYang opened this issue Sep 10, 2021 · 1 comment
Closed
1 task

g2 动态条形图 颜色排序随Y轴数据变换而变换 #3612

GevinYang opened this issue Sep 10, 2021 · 1 comment

Comments

@GevinYang
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

https://g2.antv.vision/zh/examples/case/dynamic#dynamic-bar
官方示例里面
changeData() 颜色的排序并不随y轴值的变换而变换,观感上会有“数据的排序并没有改变”
虽然可以clear()再重新设置图表。但重新加载图表会破坏动态数据变化时图表的连贯性

What does the proposed API look like?

color() 添加 "颜色位置变换"option
https://g2.antv.vision/zh/examples/case/dynamic#dynamic-bar
官网示例里面 颜色的排序并不随y轴值的变换而变换

@hustcc
Copy link
Member

hustcc commented Sep 30, 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

2 participants