Vaadin-charts repeating colors when categories exceed more than 8

When I am trying to build the column chart with categories more than 8, the vaadin chart renderers repeted color after category 8. Is this the bug?

Hi,

do you have an example code snippet where this happens?

afaik, the standard VaadinTheme uses an array of 8 colors.


https://github.com/vaadin/charts/blob/07958435e258afe40d54ceaa35ac077fc90969bc/addon/src/main/java/com/vaadin/addon/charts/themes/VaadinTheme.java

you can use your own colors with theme.setColors(…)[url=https://github.com/vaadin/charts/blob/07958435e258afe40d54ceaa35ac077fc90969bc/addon/src/main/java/com/vaadin/addon/charts/themes/VaadinTheme.java]

[/url]

Thanks for your pointer. I tried to do as below but somehow that didn’t work.

ChartOptions.get().getTheme().setColors(...)

Then I extended the vaadinTheme and set the color along with additional colors and thats works well.