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.

Tabulation setSortVerticalWhichColumn: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Nguyenduyan (talk | contribs)
No edit summary
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 03: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


After set sort vertical low to high which column 1


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