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

请问如何在设置draw: 'grid'的情况下,可以根据count设置不同栅格的颜色。 #245

Open
Liar1995 opened this issue Jan 7, 2021 · 4 comments

Comments

@Liar1995
Copy link

Liar1995 commented Jan 7, 2021

在draw: 'category'的情况下,可根据count去设置splitList的展示颜色,我希望可以控制每一个网格级别的颜色,但count值似乎与gradient没关系,应该怎么去做?😣

其实就是想根据阈值自定义栅格颜色,现在 draw: 'grid' 的时候,只可以设置

gradient: {
0.25: "rgba(0,0,255,0.6)",
0.55: "rgba(0,255,0,0.6)",
0.85: "rgba(255,255,0,0.6)",
1.0: "rgba(255,0,0,0.6)"
},

怎么去自定义gradient的值呢?

image

@xiejingyi
Copy link

请问解决了吗

@xwnwho
Copy link

xwnwho commented Jul 9, 2021

同问,data中fillStyle不起作用

@asen127
Copy link

asen127 commented Jul 26, 2023

请问有解决方案吗? 我需要通过值区间来设置对应颜色,gradient无法结局

@asen127
Copy link

asen127 commented Aug 3, 2023

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

4 participants