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

🤔 [QUESTION] 图表联动问题反馈 #3743

Closed
xiecg opened this issue Feb 20, 2024 · 2 comments
Closed

🤔 [QUESTION] 图表联动问题反馈 #3743

xiecg opened this issue Feb 20, 2024 · 2 comments
Labels
Question Further information is requested

Comments

@xiecg
Copy link

xiecg commented Feb 20, 2024

目前 G2Plot 图表联动这个功能,是利用 Mix 组件来实现。但实际使用都是独立的图表组件,目前让开发者实现联动还有一些问题。

主要的问题就是颜色设置问题,目前的 color api 非常鸡肋,返回的信息太少。

image

只有分组信息,没有维度信息,开发者完全不知道是哪个月份,应该把分组、维度和数值信息都返回出来。

目前 color 同时支持 [] 和 函数,需求一多就显得冗余,建议拆成两个 api,如图。

image

这样图形基础配色可以用 color 来实现,数据分析、预警和联动这种需求都可以利用 setFieldColor 来异化图形的颜色。

@xiecg xiecg added the Question Further information is requested label Feb 20, 2024
@lxfu1
Copy link
Member

lxfu1 commented Feb 20, 2024

可以通过配置rawFields获取更多信息

image

@xiecg
Copy link
Author

xiecg commented Feb 20, 2024

好的,建议写到文档里 🥲

@xiecg xiecg closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants