Glossary Item Box
Use a 3D bar chart to compare values of items across categories, allowing the data to be viewed conveniently in a 3D format.
Note: To see a chart in three dimensions, the ProjectionType must be Orthogonal. The ProjectionType is found in the ChartArea Collection dialog in the Projection section.
Chart Information | |
---|---|
# of Y values/data point | 1 |
# of Series | 1 or more |
Marker Support | Series or Data Point |
Custom Properties | BarTopPercent gets or sets the percentage of the top of the bar that is shown for Cone or Custom BarTypes. BarType gets or sets the type of bars that is displayed. Gap gets or sets the space between the bars of each X axis value. RotationAngle gets or sets the starting horizontal angle for custom 3D bar shapes. Can only be used with the Custom BarType. VertexNumber gets or sets the number of vertices for the data point, used to create custom 3D bar shapes. Can only be used with the Custom BarType. Bars must contain 3 or more vertices. |
Below is an example of setting the custom chart properties at run time for a 3D bar chart as shown above.
' Visual Basic Me.ChartControl1.Series(0).Properties("BarTopPercent") = 80.0F Me.ChartControl1.Series(0).Properties("BarType") = BarType.Custom Me.ChartControl1.Series(0).Properties("Gap") = 65.0F Me.ChartControl1.Series(0).Properties("RotationAngle") = 0.0F Me.ChartControl1.Series(0).Properties("VertexNumber") = 6 // C# this.ChartControl1.Series[0].Properties["BarTopPercent"] = 80f; this.ChartControl1.Series[0].Properties["BarType"] = BarType.Custom; this.ChartControl1.Series[0].Properties["Gap"] = 65f; this.ChartControl1.Series[0].Properties["RotationAngle"] = 0f; this.ChartControl1.Series[0].Properties["VertexNumber"] = 6;
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.