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.


setTotalAsSum

Returns the total percentage values (should be sum of pct values OR always is 100%), which can be shown for table diagrams. The values tells us percentage of answers were given to the question. This may be the same as the total percentage values, but given that the question type is MULTI, it may also be that it was more than this, since each respondent then can give more than one answer to one question.

Syntax

setTotalAsSum(enabled);

Arguments

enabled: Is a boolean expression (true / false).

Return type

empty

Examples

Scripts Results

setTotalAsSum(false);

setDirection(Diagram_DirectionType_Vertical);

createCrossDiagram({"Q1"},{"Q11"});

setDirection(Diagram_DirectionType_Horizontal);

createCrossDiagram({"Q1"},{"Q11"});

setTotalAsSum(true);

setDirection(Diagram_DirectionType_Vertical);

createCrossDiagram({"Q1"},{"Q11"});

setDirection(Diagram_DirectionType_Horizontal);

createCrossDiagram({"Q1"},{"Q11"});

Availability

Version 5.8.1