Difference between revisions of "Tabulation setSortVerticalWhichColumn"

From Catglobe Wiki
Jump to: navigation, search
(Tabulation_setSortVerticalWhichColumn)
Line 42: Line 42:
  
 
[[File:Vertical_sort.png]]
 
[[File:Vertical_sort.png]]
 +
 +
 +
<source lang="javascript">
 +
// Example for vertical sort on double mode
 +
DCS_use(15569074);
 +
Tabulation_setSortOrderVertical(Tabulation_SortOrder_HighToLow);
 +
Tabulation_setSortVerticalWhichColumn(1);
 +
createCrossDiagram({"Panel_Age","Panel_Gender"},{"Q2"});
 +
</source>
 +
[[File:Vertical_sort_for_double_mode.png]]

Revision as of 04:41, 12 July 2017


Tabulation_setSortVerticalWhichColumn

Define which column should be sort.

Use combine with

Tabulation_setSortOrderVertical(Tabulation_SortOrder_LowToHigh);

or

Tabulation_setSortOrderVertical(Tabulation_SortOrder_HighToLow);


Syntax

Tabulation_setSortVerticalWhichColumn( column);

Arguments

column: is a number expression. It's the column you want to sort (start with 0)

Return type

empty

Example

DCS_use(15569074);
Tabulation_setSortOrderVertical(Tabulation_SortOrder_LowToHigh);
Tabulation_setSortVerticalWhichColumn(1);
createCrossDiagram({"Q2"}, {"Panel_Age"});

Before set sort vertical low to high which column 1 Vertical sort before.png


After set sort vertical low to high which column 1

Vertical sort.png


// Example for vertical sort on double mode
DCS_use(15569074);
Tabulation_setSortOrderVertical(Tabulation_SortOrder_HighToLow);
Tabulation_setSortVerticalWhichColumn(1);
createCrossDiagram({"Panel_Age","Panel_Gender"},{"Q2"});

Vertical sort for double mode.png