version 1
CT Get chart type (area; object) Integer
Parameter | Type | Description | |
area | Longint | 4D Chart area | |
object | Longint | Object ID | |
Function result | Integer | Chart type |
Description
The CT Get chart type command returns the type of the chart specified by area and object.
The following table lists the codes for the chart types:
Code | Chart Type |
1 | Area |
2 | Column |
3 | Picture |
4 | Line |
5 | Scatter |
6 | Pie |
7 | Polar |
8 | 2D XY |
100 | 3D Column |
101 | 3D Line |
102 | 3D Area |
103 | 3D Surface |
104 | 3D Triangle |
105 | 3D Spike |
Example
In this example, CT Get chart type is used to get the chart type of the chart specified by $ChartID. If it is not a column chart, CT SET CHART TYPE changes it to a column chart.
If (CT Get chart type (Area;$ChartID)#2) CT SET CHART TYPE (Area;$ChartID;2) End if
See Also