Difference between revisions of "CreateStackCrossDiagram"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "<parsererror>XML Parsing Error: mismatched tag. Expected: </source>. Location: http://wiki.catglobe.com/index.php?title=CreateStackCrossDiagram&action=edit Line Number 1...")
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<parsererror>XML Parsing Error: mismatched tag. Expected: &lt;/source&gt;. Location: http://wiki.catglobe.com/index.php?title=CreateStackCrossDiagram&action=edit Line Number 1, Column 1161:<sourcetext>&lt;body xmlns:x="http://excel"&gt;&lt;p&gt;&#x7B;&#x7B;HelpFiles&#x7D;&#x7D; === 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. &#x7B;&#x7B;note&#x7D;&#x7D;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; === Examples === &lt;source lang="javascript"&gt; DCS_use(15321022); number table1 = createStackCrossDiagram({"QA1","D_Age_Group"}, &#x7B;&#x7B;"QA2a_Januar","D_QA4"&#x7D;&#x7D;); print(table1); //Result: 1 number table2 = createStackCrossDiagram({}, &#x7B;&#x7B;"QA2a_Januar","D_QA4"&#x7D;&#x7D;); print(table2); //Result: 2 number table3 = createStackCrossDiagram({"QA1","D_Age_Group"}, &#x7B;&#x7B;&#x7D;&#x7D;); print(table3); //Result: 3 &lt;/p&gt;&lt;/body&gt; --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^</sourcetext></parsererror>
+
__NOTOC__
 +
[[Category:Diagram/report_generating_CGScript_functions]]
 +
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}}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;
 +
 
 +
==Examples==
 +
 
 +
<source lang="javascript">
 +
DCS_use(15321022);
 +
number table1 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{"QA2a_Januar","D_QA4"}});
 +
print(table1); //Result: 1
 +
number table2 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{"QA2a_Januar"},{"D_QA4"}});
 +
print(table2); //Result: 2
 +
number table3 = createStackCrossDiagram({}, {{"QA2a_Januar","D_QA4"}});
 +
print(table3); //Result: 3
 +
number table4 = createStackCrossDiagram({"QA1","D_Age_Group"}, {{}});
 +
print(table4); //Result: 4
 +
</source> Result:
 +
 
 +
[[File:StackCrossDiagramFn.jpg]]

Latest revision as of 11:29, 24 January 2017

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;

Examples

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

Result:

StackCrossDiagramFn.jpg