RadzenBarSeries color

Is it possible to change the Bar Series color in code? The data is updating every few seconds, I would like the color to change based on the value.

Thanks

The Fill property of the RadzenBarSeries determines the color of the series.

Thanks for the reply!

I can change the color for all the bars using the Fill property but I would like to change each bar individually based on the value. If it is even possible.

No, this isn't currently possible.

@korchev is this feature available now, I want to change color of each value in column or bar chart.

You can set the Fills property of the series. It is IEnumerable<string> with the desired colors. The series will alternate between the provided values to set the color.

1 Like

<RadzenBarSeries Title="@Series1Title" Fills=@(new [] { "#000075", "#808000", "#469990", "#158231", "#ffe119", "#3cb44b", "#42d4f4", "#4363d8", "#911eb4", "#800000" }) CategoryProperty="Name" Data="@Items" ValueProperty="@Series1ColumnName">

Thank you @korchev, this resolved my issue to give custom colors for BarSeries and ColumnSeries.