Difference between revisions of "GetChartType"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
{{HelpFiles}}

 
  
=====getChartType=====
+
===== getChartType =====
  
Gets the chart type which is used when creating diagrams.
+
Gets the chart type which is used when creating diagrams.  
  
'''Syntax'''
+
'''Syntax'''  
  
getChartType()
+
getChartType()  
  
'''Arguments'''
+
'''Arguments'''  
  
none
+
none  
  
'''Return type'''
+
'''Return type'''  
  
number (represented by the following constants)
+
number (represented by the following constants)  
  
* Diagram_ChartType_Table  
+
*Diagram_ChartType_Table  
* Diagram_ChartType_Line  
+
*Diagram_ChartType_Line  
* Diagram_ChartType_Bar  
+
*Diagram_ChartType_Bar  
* Diagram_ChartType_Pie  
+
*Diagram_ChartType_Pie  
* Diagram_ChartType_Radar  
+
*Diagram_ChartType_Radar
  
'''Examples'''
+
'''Examples'''  
  
''getChartType();''
+
''number n = getChartType();''
  
'''Availability'''
+
''if (n == 1) print("Chart type is Table.");''
  
Version 5.4
+
''else if (n == 2) print("Chart type is Line.");''
__NOTOC__
+
 
<!-- imported from file: 4192.htm-->
+
''else if (n == 3) print("Chart type is Bar.");''
 +
 
 +
''else if (n == 4) print("Chart type is Pie.");''
 +
 
 +
''else if (n == 5) print("Chart type is Radar.");''
 +
 
 +
''//Result: Chart type is Table.''
 +
 
 +
''createFrequenceDiagram("Civil_status");''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4192.htm-->  
 +
 
 +
[[Category:Chart_type_functions]]

Latest revision as of 12:08, 26 December 2011



getChartType

Gets the chart type which is used when creating diagrams.

Syntax

getChartType()

Arguments

none

Return type

number (represented by the following constants)

  • Diagram_ChartType_Table
  • Diagram_ChartType_Line
  • Diagram_ChartType_Bar
  • Diagram_ChartType_Pie
  • Diagram_ChartType_Radar

Examples

number n = getChartType();

if (n == 1) print("Chart type is Table.");

else if (n == 2) print("Chart type is Line.");

else if (n == 3) print("Chart type is Bar.");

else if (n == 4) print("Chart type is Pie.");

else if (n == 5) print("Chart type is Radar.");

//Result: Chart type is Table.

createFrequenceDiagram("Civil_status");

Availability

Version 5.4