Difference between revisions of "CreateCrossDiagram"

From Catglobe Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Diagram/report generating CGScript functions]]
+
{{HelpFiles}}
{{HelpFiles}}
 
  
====createCrossDiagram====
+
==== createCrossDiagram ====
  
 
Creates a cross diagram from the axis names specified as string arrays for rows and columns. A unique id is returned when a diagram is added.
 
Creates a cross diagram from the axis names specified as string arrays for rows and columns. A unique id is returned when a diagram is added.
Line 24: Line 23:
 
'''Examples'''
 
'''Examples'''
  
 +
{| border="1" cellspacing="1" cellpadding="1" style="width: 800px"
 +
|-
 +
|
 
''number a = createCrossDiagram({"Q5_SQ_3"},{"Q5_SQ_5"});''
 
''number a = createCrossDiagram({"Q5_SQ_3"},{"Q5_SQ_5"});''
 +
 +
''print(a); //Result: 1''
  
 
''number b = createCrossDiagram({"Q5_SQ_3"},{});''
 
''number b = createCrossDiagram({"Q5_SQ_3"},{});''
 +
 +
''print(b); //Result: 2''
 +
 +
''number c = createCrossDiagram({},{"Q5_SQ_5"});''
 +
 +
''print(c); //Result: 3''
 +
 +
|}
 +
 +
 +
 +
{{note}}You have to change row and column axis names in example to axis names of DCS that you're working on.
  
 
'''Availability'''
 
'''Availability'''
  
Version 5.4
+
Version 5.4 __NOTOC__
__NOTOC__
 
 
<!-- imported from file: 4223.htm-->
 
<!-- imported from file: 4223.htm-->
 +
[[Category:Diagram/report_generating_CGScript_functions]]

Latest revision as of 05:43, 19 August 2016


createCrossDiagram

Creates a 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

createCrossDiagram(rowAxisNames, columnAxisNames)

Arguments

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

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

One of these array can be empty and the function will then basically work as a 'createFrequenceDiagram' function.

Return type

number: Id of the added diagram. Diagram id starts from 1 and will increase by one for each time one of the functions createFrequenceDiagram or createCrossDiagram are called. The ids will keep on increasing for the duration of the script

Examples

number a = createCrossDiagram({"Q5_SQ_3"},{"Q5_SQ_5"});

print(a); //Result: 1

number b = createCrossDiagram({"Q5_SQ_3"},{});

print(b); //Result: 2

number c = createCrossDiagram({},{"Q5_SQ_5"});

print(c); //Result: 3


Note Note: You have to change row and column axis names in example to axis names of DCS that you're working on.

Availability

Version 5.4