ManInMoon ManInMoon - 1 month ago 19
C# Question

DataVisualization set transparency of area

I have a series:

System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Area


How do I make the area transparent so I can see other previously plotted series?

Answer

Hav you tried ChartArea.BackColor Property

You can set this property to any valid ARGB (alpha, red, green, blue) value.

The BackColor value will be the first color used if you have specified gradient colors for the background.

The alpha value controls the opacity of a color. If you set this color to "transparent"—that is, if you use an alpha value of 0—no color will be assigned to the background of the chart area. As a result, the background will be transparent.

Comments