0

Is there a way to set default opacity for (let's say) pie chart to (let's say 0.5), and then when mouseenter event occurs, revert it back to solid color?

I know that's possible using rgba notation, but I'm looking for alternative solution.

Looking forward for any suggestions.

1

1 Answer 1

1

If rgba notation is out of the question, perhaps you could simply switch the color to a lighter shade to mimic the opacity effect.

For example, if your default color was red (#ff0000), you could set the mouseover color to a lighter shade of red (#ffe6e6). This is, of course, assuming your background is white or another similarly light color.

An HTML color picker, such as this one from W3Schools, can help you select shades for this effect: http://www.w3schools.com/colors/colors_picker.asp

I hope this is helpful!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.