Applies to: Nevron Chart for .NET

How to set transparency to the Chart walls?

Setting the transparency to the Chart walls can be easily achieved by setting a transparent fill style to the chart walls. The following code will set transparency to the back wall:

[C#]
//To assign semi-transparent white color to the chart back wall:
NChart chart = nChartControl1.Charts[0];
chart.Wall(ChartWallType.Back).FillStyle = new NColorFillStyle(Color.FromArgb(125, Color.White));
  
//You can also turn off the wall visibility:
NChart chart = nChartControl1.Charts[0];
chart.Wall(ChartWallType.Back).Visible = false;

[VB.NET]
'To assign semi-transparent white color to the chart back wall:
Dim chart As NChart = nChartControl1.Charts(0)
chart.Wall(ChartWallType.Back).FillStyle = New NColorFillStyle(Color.FromArgb(125, Color.White))
  
'You can also turn off the wall visibility:
Dim chart As NChart = nChartControl1.Charts(0)
chart.Wall(ChartWallType.Back).Visible = False

Article ID: 73, Created On: 10/6/2010, Modified: 11/15/2010