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

热力图不同颜色透明度不一样 #2978

Closed
fancy-cat opened this issue Nov 5, 2020 · 2 comments
Closed

热力图不同颜色透明度不一样 #2978

fancy-cat opened this issue Nov 5, 2020 · 2 comments
Labels

Comments

@fancy-cat
Copy link

this.chart.heatmap().position('x*y') .color('value', ['#2206FF', '#1543FC', '#0C6EF9', '#019FF6', '#5BC5F9', '#FFFFFF', '#FEFDC7', '#FBF82E', '#FCC607', '#FD7404', '#FF0500'])

我的value范围是-10到10的 ,想实现一个过度效果,现在有个问题

value值越小透明度越低,到-10以后,透明度直接是0了,而不是我想要的#2206FF

我希望他们透明度都是一样的

@hustcc
Copy link
Member

hustcc commented Jan 29, 2021

有具体的复现 demo 吗?方便进行调试和快速修复。 @fancy-cat

@Mr-jili
Copy link

Mr-jili commented Feb 1, 2024

现在就是只要是0或者数据中最小值,都会是没有颜色的,应该展示是颜色色块的第一个颜色

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants