Is it possible to have a column chart display one color per series?
This is the way my chart currently displays:
And this is the way I'd like it to display (more or less):
Is this possible/easy to do? My datasource for the chart is a plain old SQLDataSource.
Thanks!
You can use something like:
PaintElement pe = new PaintElement();
pe.ElementType = PaintElementType.Gradient;
pe.FillGradientStyle = GradientStyle.HorizontalBump;
pe.Fill = Color.Green;
pe.FillStopColor = Color.White;
this.ultraChart1.ColorModel.Skin.PEs.Add(pe);
Thank you very much for your help. That gives me the colors the way I'd like them to be.
Is there a way to keep the gradient effect intact when doing this? Everything I've tried doesn't work and the colors are just solid. I've been reading through the docs and nothing mentions this.
This is what I'm doing after setting the colors as you suggested above:
Dim gradientEffect1 As New GradientEffect()gradientEffect1.Coloring = GradientColoringStyle.LightengradientEffect1.Style = GradientStyle.ForwardDiagonalMe.UltraChart1.Effects.Add(gradientEffect1)
Thanks again for your help. It's much appreciated!
You can try using:
this.ultraChart1.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomSkin;
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Red));
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Green));
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Blue));
this.ultraChart1.ColorModel.Skin.PEs.Add(new PaintElement(Color.Yellow));
this.ultraChart1.ColorModel.Skin.ApplyRowWise = true;