new AnnotationSorter
Numeric sorter by row or column annotation
Parameters:
Name | Type | Description |
---|---|---|
field |
int | Value field to aggregate |
asc |
boolean | True to sort ascending, false to sort descending |
- Source:
- ../js/jheatmap-1.0.0.js, line 1793
Example
new jheatmap.sorters.AnnotationSorter(heatmapDimension, 2, true);
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 1805