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

Custom Legend Items Fill Color using series markers fillOpacity instead of fillColors #4711

Open
Zordiac opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Zordiac
Copy link

Zordiac commented Sep 18, 2024

Description

I wanted to create a chart with custom legend items that are totally independent from my series. I do have two series A and B, and have set my marker Options fillOpacity to [1,0] meaning Series A shows the marker, whilst Series B's marker should be transparent. That works fine.
However, when adding custom legend items, the markers for the legend are using the series fillOpacity. I added two custom legend items with fillColors Red and Blue, but the second marker in the legend will not display, because my series B marker fillOpacity is zero. It's not a bug per se, but I don't think it is intended this way. The reason I use custom legend items is, because I want custom legend items independent of my actual series. However, it seems like they are still tied to the series.

Steps to Reproduce

See fiddle below

Expected Behavior

Legend shows to markers with red and blue

Actual Behavior

Legend shows 1 marker in red, and the other one transparent

Screenshots

Reproduction Link

https://jsfiddle.net/b6vh27ka/

You can see the second marker in the legend in blue not displaying

@Zordiac Zordiac added the bug Something isn't working label Sep 18, 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