Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Pie Chart Colors
posted

Hello,

I'm using the PieChart3D and all is going well except my color scheme. I'm doing the following (see below) to set the colors and on the whole it's working except that one color always seems to be duplicating despite the fact that I have at most 10 slices of pie. Whatsmore it is always the same slices which are using duplicate colors. What am I doing wrong?

thanks very much,

Olly

chart.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear;
chart.ColorModel.AlphaLevel = (
Byte)125;
chart.ColorModel.CustomPalette =
new Color[ {
Color.Red,
Color.Blue,
Color.Green,
Color.Yellow,
Color.Purple,
Color.Orange,
Color.Silver,
Color.Navy,
Color.Khaki,
Color.Coral,
Color.MistyRose,
Color.DarkKhaki,
Color.DarkSeaGreen,
Color.LightSteelBlue,
Color.Violet,
Color.HotPink
};