Class: AggregationValueSorter

jheatmap.sorters.AggregationValueSorter

new AggregationValueSorter

Numeric sorter by value of multiple aggregated rows or columns.

Parameters:
Name Type Description
field int Value field to aggregate
asc boolean True to sort ascending, false to sort descending
nullsLast boolean True to sort null values always to the end. False to treat as zero.
indices Array Integer positions of the selected rows/columns to aggregate.
Source:
  • ../js/jheatmap-1.0.0.js, line 1690
Example
new jheatmap.sorters.AggregationValueSorter(heatmap, "rows", 3, true, [23, 24, 32, 45, 50] );

Methods

sort

Sort the heatmap

Parameters:
Name Type Description
heatmap jheatmap.Heatmap The heatmap to sort
sortType string "rows" or "columns"
Source:
  • ../js/jheatmap-1.0.0.js, line 1703