SetTotalAsSum

From Catglobe Wiki
Jump to: navigation, search


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(false).jpg

setTotalAsSum(true);

setDirection(Diagram_DirectionType_Vertical);

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

setDirection(Diagram_DirectionType_Horizontal);

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

SetTotalAsSum(true).jpg

Availability

Version 5.8.1