Difference between revisions of "SetTotal"
Line 17: | Line 17: | ||
empty | empty | ||
− | '''Examples''' | + | '''Examples''' |
+ | |||
+ | <span style="color:#DF8621"> Example for cross 1x0 </span> | ||
<source lang="javascript"> | <source lang="javascript"> | ||
DCS_use(15645932); | DCS_use(15645932); | ||
Line 26: | Line 28: | ||
[[File:2018-11-12_09-18-41.png]] | [[File:2018-11-12_09-18-41.png]] | ||
+ | |||
+ | |||
+ | <span style="color:#DF8621"> Example for cross 2x1 </span> | ||
<source lang="javascript"> | <source lang="javascript"> | ||
DCS_use(15639259); | DCS_use(15639259); |
Revision as of 04:28, 12 November 2018
setTotal
Enables or disables the total row which can be shown for table diagrams.
Syntax
setTotal(enabled)
Arguments
enabled: Is a boolean expression. If true the row will be included, if false the row will not be included
Return type
empty
Examples
Example for cross 1x0
DCS_use(15645932);
setTotal(false) ;
createCrossDiagram({"Gender"},{});
Example for cross 2x1
DCS_use(15639259);
setTotal(false) ;
createCrossDiagram({"Gender", "Age"},{"Q3"});