4D Chart v13

CT Get chart type

Home

 
4D Chart v13
CT Get chart type

CT Get chart type 


 

CT Get chart type ( area ; object ) -> Function result 
Parameter Type   Description
area  Longint in 4D Chart area
object  Longint in Object ID
Function result  Integer in Chart type

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:

CodeChart Type
1Area
2Column
3Picture
4Line
5Scatter
6Pie
7Polar
82D XY
1003D Column
1013D Line
1023D Area
1033D Surface
1043D Triangle
1053D 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

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14591

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT SET CHART TYPE