-
Notifications
You must be signed in to change notification settings - Fork 121
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
[Heatmap] Color with 0% opacity fallbacks to "default" red color #1263
Comments
Interesting. So you'd expect it to allow a |
I think it should allow the |
Totally! Got it thanks! |
It appears that the getColor('#00000000') // => {r: NaN, g: NaN, b: NaN, opacity: 0}
getColor('#000000') // => {r: 0, g: 0, b: 0, opacity: 1} elastic-charts/packages/charts/src/common/color_library_wrappers.ts Lines 57 to 76 in f3f8d35
|
Maybe related to this d3/d3-color#52 The only solution I found is to pass thru Otherwise a special detection branch to return the |
This appears to be broken in https://codesandbox.io/s/lucid-cache-6zlmm?file=/src/App.tsx UPDATE: It's still bad in |
Describe the bug
When passing a 8 digits HEX color (classic HEX 6-digits + alpha channel), when the alpha channel is
0
the color seems to be ignored and the fallbackred
color is used.To Reproduce
colors={}
props to the Heatmap component:["#6092c000", "#6092c000", "#a8bfda", "#ebeff5", "#ecb385", "#e7664c"]
red
Apparently the bug does not appear when using the
rgba
notation.Expected behaviour
Transparent color should appear.
Screenshots
Kibana Cross Issues
elastic/kibana#106419
The text was updated successfully, but these errors were encountered: