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
710
UltraChart Line Color
posted

I don't know what's going on. I tried to set the line colors in the line chart. If I set it line by line, it's working fine. If however, I use a for loop to set the paint element, the lines become black. Any idea why?

For example: (set it line by line)

ultraChart1.ColorModel.ModelStyle =

ColorModels.CustomSkin;

ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(color));

ultraChart1.ColorModel.Skin.PEs.Add(

new PaintElement(color1));

For example: (set it in a loop)

ultraChart1.ColorModel.ModelStyle =

ColorModels.CustomSkin;

for (int i = 0; i < 10; i++)

{

ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(color + 1));

 

 

}