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.

CreateStackCrossDiagram: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 31: Line 31:
number table3 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{}});
number table3 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{}});
print(table3); //Result: 3
print(table3); //Result: 3
</source>
</source> Result:
Result:
 
[[File:]]

Revision as of 08:15, 26 May 2016


createStackCrossDiagram

Creates a stack cross diagram from the axis names specified as string arrays for rows and columns. A unique id is returned when a diagram is added.

Syntax

createStackCrossDiagram(rowAxisNames, {columnAxisNames});

Arguments

rowAxisNames: An array expression. This array contains the names of the axes which are used for the rows in the stack cross diagram;

columnAxisNames: An array expression. This array contains the names of the axes which are used for the columns in the stack cross diagram.

Note Note: A limit of 2 rows and 2 columns is set at the moment. If an array (rowAxisNames or columnAxisNames) containing two axes, We will have multi-level diagrams.

Return type

number;

Examples1

DCS_use(15321022);
number table1 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{"QA2a_Januar","D_QA4"}});
print(table1); //Result: 1
number table2 = createStackCrossDiagram({}, {{"QA2a_Januar","D_QA4"}});
print(table2); //Result: 2
number table3 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{}});
print(table3); //Result: 3

Result:

[[File:]]