Sales
1-888-9DOTNET
|
ChartColorPalette.Color property can be used to specify the color palettes for the chart. ColorPalette class. Other than predefined palettes we can specify our own palatte colors using Custom style in ChartColorPalette. C# // Specify a custom color this.chartControl1.CustomPalette = new System.Drawing.Color[] {System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(203)))), ((int)(((byte)(216))))),System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(209)))), ((int)(((byte)(248))))),System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(155)))), ((int)(((byte)(155)))))}; this.chartControl1.Palette = ChartColorPalette.Custom; VB ' Specify a custom colors Me.chartControl1.CustomPalette = New System.Drawing.Color() {System.Drawing.Color.FromArgb((CInt(Fix((CByte(255))))), (CInt(Fix((CByte(203))))), (CInt(Fix((CByte(216)))))),System.Drawing.Color.FromArgb((CInt(Fix((CByte(222))))), (CInt(Fix((CByte(209))))), (CInt(Fix((CByte(248)))))), System.Drawing.Color.FromArgb((CInt(Fix((CByte(250))))), (CInt(Fix((CByte(155))))), (CInt(Fix((CByte(155))))))} Me.chartControl1.Palette = ChartColorPalette.Custom |