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
585
Changing color of lines in Linechart
posted

 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