Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SetChartType: Difference between revisions

From Catglobe Wiki
Cg van (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
Line 40: Line 40:


''//Result: Chart type is Table.''  
''//Result: Chart type is Table.''  
''createFrequenceDiagram("Civil_status");''


'''Availability'''  
'''Availability'''  

Latest revision as of 10: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