telerik / UI-For-UWP

This repo contains the source code for Telerik UI for Universal Windows Platform (UWP), which includes 20+ UI controls for developers building UWP applications.
http://www.telerik.com/uwp/
Other
1.16k stars 234 forks source link

Specifying color in dynamic series #344

Open mscherotter opened 5 years ago

mscherotter commented 5 years ago

I have a stacked bar chart with dynamic series - where each series relates to a specific color - how do I bind the color of the series bars to the ColorCount.Color? each series is a ColorCount: public sealed class ColorCount { public Color Color {get;set;} public IEnumerable Count {get;set;}

    public int Total {get;set;}
}

`

`
APopatanasov commented 5 years ago

Hi @mscherotter,

If you need to set a specific color for the dynamically generated BarSeries you need to use custom palette. By default the palette applies on a per series basis. On the following link from our documentation more detailed information how to achieve this: https://docs.telerik.com/devtools/universal-windows-platform/controls/radchart/how-to/custompalette

Hope this will help you.