Returns the series type used to draw a series if the chart type is set to chType. This method allows you to get the series type information based on a specified chart type without actually setting the chart type.
Syntax
object.TypeByChartType (chtype)
The TypeByChartType method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
chtype | Integer. A VtChChartType constant describing the chart type. |
Return Values
Depending on the chart type specified by the chtype argument, the TypeByChartType method returns one of the VtChSeriesType values, as shown below:
Constant | Value | Description |
VtChSeriesTypeDefault | -1 | Default |
VtChSeriesType3dBar | 0 | 3D Bar |
VtChSeriesType2dBar | 1 | 2D Bar |
VtChSeriesType3dLine | 5 | 3D Line |
VtChSeriesType2dLine | 6 | 2D Line |
VtChSeriesType3dArea | 7 | 3D Area |
VtChSeriesType3dStep | 9 | 3D Step |
VtChSeriesType2dStep | 10 | 2D Step |
VtChSeriesType2dXY | 11 | XY |
VtChSeriesType2dPie | 24 | 2D Pie |