Articles in this section
Category / Section

How to set gradient colors for OLAP Chart series?

1 min read

You can set gradient style for OLAP Chart series using the following code example at sample level.

C#

Color[] color1 = new Color[] { Color.FromArgb(0, 128, 192), Color.FromArgb(224,255,255), Color.FromArgb(139,90,0) };
Color[] color2 = new Color[] { Color.FromArgb(192, 192, 192), Color.FromArgb(255, 145, 145), Color.FromArgb(239, 195, 148) };
Color[] color3 = new Color[] { Color.FromArgb(196, 0, 0), Color.FromArgb(189, 252, 201), Color.FromArgb(255, 145, 145) };
this.olapChart1.Series[0].Style.Interior = new BrushInfo(GradientStyle.Vertical, color1);
this.olapChart1.Series[1].Style.Interior = new BrushInfo(GradientStyle.Vertical, color2);
this.olapChart1.Series[2].Style.Interior = new BrushInfo(GradientStyle.Vertical, color3);

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied