-
Notifications
You must be signed in to change notification settings - Fork 24
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
Automatically generated color in chart is different from corresponding color in chart legend (Vaadin 17) #553
Comments
Dear @NicolasErnst , |
Hello @yuriy-fix, Here is the requested code snippet to reproduce:
This snippet leads to the following diagram: When you add more DataSeriesItems, you can see that the colors of element two and four are reversed:
|
By the way, I do not know if the following is desired behaviour:
Here I tried to color the third element pink. But as you can see in the following picture, the color is only changed in the legend but not in the diagram. |
I tried your snippet in this simple project skeleton-starter-flow-chart-17.zip and it looks like this. Is it possible that you have setup a css theme for charts in your project? There is more info about migrating to latest charts version depending on how you want to apply styles in vaadin.com/docs |
Hello @alvarezguille, I created my project back then with Vaadin 14 and upgraded it to Vaadin 17 step by step. I found defined values for |
I have created a pie chart following the online example at https://demo.vaadin.com/charts/PieWithLegend.
Unfortunately the color of the second legend entry does not match the corresponding color in the pie chart. All other entries seem to match the colors in the pie charts.
This can be easily reproduced by using the example from the link under Vaadin 17 and it seems to affect various / all diagram types.
The text was updated successfully, but these errors were encountered: