There may be use cases whereby you don’t want users to access the built-in widget menus at view time,
or you want to minimise the learning curve for end users by using buttons to apply sorts to charts and tables.
Sort high to low
var measure_sort = Chart_1.getMeasures (Feed.ValueAxis)[0];
Chart_1.sortByValue(measure_sort,SortOrder.Descending, measure_sort);
Code language: JavaScript (javascript)
Sort low to high
var measure_sort = Chart_1.getMeasures (Feed.ValueAxis)[0];
Chart_1.sortByValue(measure_sort,SortOrder.Ascending, measure_sort);
Code language: JavaScript (javascript)
