Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Tabulation setSortHorizontalWhichColumn: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "Category:Sorting_functions {{HelpFiles}} = Tabulation_setSortHorizontalWhichColumn = Set which row should be sorted == Syntax == Tabulation_setSortHorizontalWhichColu..."
 
Nguyenduyan (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:


Set which row should be sorted
Set which row should be sorted
Use combine with:
Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_HighToLow);
or
Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_LowToHigh);


== Syntax ==
== Syntax ==
Line 33: Line 42:


[[File:Horizontal_sort.png]]
[[File:Horizontal_sort.png]]
<source lang="javascript">
//Example for Horizontal sort on double mode
DCS_use(15569074);
Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_HighToLow);
Tabulation_setSortHorizontalWhichColumn(1);
createCrossDiagram({"Q2"},{"Panel_Age","Panel_Gender"});
</source>
[[File:Horizontal_sort_on_double_mode.png]]

Latest revision as of 03:51, 12 July 2017


Tabulation_setSortHorizontalWhichColumn

Set which row should be sorted

Use combine with:

Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_HighToLow);

or

Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_LowToHigh);


Syntax

Tabulation_setSortHorizontalWhichColumn( row);

Arguments

row: is a number expression. It is the row you want to sort (row start from 0)

Return type

Empty

Example

DCS_use(15569074);
Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_LowToHigh);
Tabulation_setSortHorizontalWhichColumn(1);
createCrossDiagram({"Q2"}, {"Panel_Age"});

Before set sort horizontal low to high which column 1


After set sort horizontall low to high which column 1

//Example for Horizontal sort on double mode
DCS_use(15569074);
Tabulation_setSortOrderHorizontal(Tabulation_SortOrder_HighToLow);
Tabulation_setSortHorizontalWhichColumn(1);
createCrossDiagram({"Q2"},{"Panel_Age","Panel_Gender"});