ColumnChart Series ColorSchemes limit

Dear Radzen Team,

I ran out available colors using the default colorSchemes. Appreciate if you can suggest any work around this.

public ColorScheme colorScheme = ColorScheme.Pastel;

The last three series are default to black, so I guessing I ran out of alternating colors here.

Chart:

Code:

Any input will be appreciated.

Thank you,

John

You can use the Fills property of RadzenColumnSeries to specify custom set of colors:

<RadzenColumnSeries Fills="@(new [] { "#aabbcc", "#a0b0c0", "red", "green" })" ... />

Hi Korchev,

I tried applying the Fills property and getting some unwanted effects. The colors are not alternating within the series and the legion colors are different to the series colors. It retains the pastel default colors.

In the code, I've removed ColorScheme = @colorScheme from the Radzen Chart tag.

Code:


Image:

Also tested on the sample demo styled bar series chart page from documentation:
Code:


Image:

Any suggestions appreciated.

Thanks,

John

This is how the Fills property behaves by default. You can also try setting the Fill property which will set the color of individual column.

Hi Korchev,

It looks like I am able to get these Multi-Series by Multi-Categories to work correctly for both the bar and the legion.

I have not tried it yet but I think I should be able to set colors based on Series value as well using a dictionary.

Code:

Chart: