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

Area Charts : Fill color isn't applied when color is rgb() #4742

Open
Slokilla opened this issue Oct 3, 2024 · 0 comments
Open

Area Charts : Fill color isn't applied when color is rgb() #4742

Slokilla opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Slokilla
Copy link

Slokilla commented Oct 3, 2024

Description

When using a rgb() color, the filling in the graph does not take into account the opacity.

Steps to Reproduce

  1. Use this fill objet :
 {
        colors: ['rgb(236, 22, 26)'],
        opacity: [0.1],
        type: 'solid'
 }

See that the graph is full opaque.
2. Replace the color by the exact same hexadecimal color :

 {
        colors: ['#EC1A16'],
        opacity: [0.1],
        type: 'solid'
 }

See that this time, the graph is not opaque.

Expected Behavior

The graph should not be opaque.

Actual Behavior

Screenshots

With rgb :

image

With hex :

image

Reproduction Link

With rgb : https://codepen.io/slokilla/pen/bGXpBge

With hexa : https://codepen.io/slokilla/pen/LYwNbbM

@Slokilla Slokilla added the bug Something isn't working label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant