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

GetChartType

From Catglobe Wiki
Revision as of 10:08, 26 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



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