Difference between revisions of "SetChartType"

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

 
  
=====setChartType=====
+
===== setChartType =====
  
Sets the chart type which must be used when creating diagram.
+
Sets the chart type which must be used when creating diagram.  
  
'''Syntax'''
+
'''Syntax'''  
  
setChartType(''chartType'')
+
setChartType(''chartType'')  
  
'''Arguments'''
+
'''Arguments'''  
  
''chartType:'' Is a numeric (non-decimal) expression. The chart type must be one of the values specified below
+
''chartType:'' Is a numeric (non-decimal) expression. The chart type must be one of the values specified below  
  
* Diagram_ChartType_Table
+
*1: Diagram_ChartType_Table  
* Diagram_ChartType_Line
+
*2: Diagram_ChartType_Line  
* Diagram_ChartType_Bar
+
*3: Diagram_ChartType_Bar  
* Diagram_ChartType_Pie
+
*4: Diagram_ChartType_Pie  
* Diagram_ChartType_Radar
+
*5: Diagram_ChartType_Radar
  
'''Return type'''
+
'''Return type'''  
  
empty
+
empty  
  
'''Examples'''
+
'''Examples'''  
  
''setChartType(''Diagram_ChartType_Table'');''
+
''setChartType(Diagram_ChartType_Table); ''  
  
'''Availability'''
+
''number n = getChartType();''  
  
Version 5.4
+
''if (n == 1) print("Chart type is Table.");''
__NOTOC__
+
 
<!-- imported from file: 4183.htm-->
+
''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.''
 +
 
 +
'''Availability'''
 +
 
 +
Version 5.4 __NOTOC__ <!-- imported from file: 4183.htm-->  
 +
 
 +
[[Category:Chart_type_functions]]

Latest revision as of 12:38, 26 December 2011



setChartType

Sets the chart type which must be used when creating diagram.

Syntax

setChartType(chartType)

Arguments

chartType: Is a numeric (non-decimal) expression. The chart type must be one of the values specified below

  • 1: Diagram_ChartType_Table
  • 2: Diagram_ChartType_Line
  • 3: Diagram_ChartType_Bar
  • 4: Diagram_ChartType_Pie
  • 5: Diagram_ChartType_Radar

Return type

empty

Examples

setChartType(Diagram_ChartType_Table);

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.

Availability

Version 5.4