More actions
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"});