Hello NG,
I'm trying to change the color of lines in a Linechart
Here is the code I'm using
Me.UltraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomSkin Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Red)) Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Blue)) Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Green)) Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Yellow)) Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Violet)) Me.UltraChart1.ColorModel.Skin.PEs.Add(New PaintElement(System.Drawing.Color.Orange))
This code is not working for me, regardless I call it before or after the databind of the linechart.
Tanks in advance for your help!
Stefan
Hello,
just found the error ... ;-). Apparantly I did made the mistake to call the above stated code always bevore the databind code.
Thanks!
What version and build of NetAdvantage are you using? Can you post the part of your code where you add the data to the chart? I couldn't reproduce the problem on my machine. I have bound my chart to a table and I can see the colors being applied.