Spread for ASP.NET 9.0 Product Documentation
Setting the Chart View Type

You can specify a 2D or 3D view of the Chart control. You can set this with the ChartViewType parameter in the SpreadChart constructor when creating a chart. The following image shows a 2D chart.

2D View

The following image shows a 3D chart.

3D View

Using Code

Set the ViewType property.

Example

The following example sets the ViewType property.

C#
Copy Code
FarPoint.Web.Spread.Chart.SpreadChart chart = new FarPoint.Web.Spread.Chart.SpreadChart;
chart.ViewType = FarPoint.Web.Chart.ChartViewType.View2D;
fpSpread1.Sheets[0].Charts.Add(chart);
VB
Copy Code
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart()
chart.ViewType = FarPoint.Web.Chart.ChartViewType.View2D
FpSpread1.Sheets(0).Charts.Add(chart)

Context Menu

You can set the view type to 2D or 3D by using the chart context menu.

  1. Right-click the Chart control on the form at design time.
  2. Select ViewType in the context menu and set the type.

Using the Spread Designer

You can set the view type to 2D or 3D using the properties window in the designer.

  1. Select the Chart control in the designer.
  2. The ViewType setting is under the Behavior category in the Properties window on the right side of the designer (selected item section).
  3. Click Apply and Exit to close the Spread Designer.
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback