# new FunkyHeatmap(data, columnInfo, columnGroups, rowInfo, rowGroups, palettes, legends, positionArgs, options, svg)
Calls calculateOptions to pre-calculate some derived values.
Parameters:
Name | Type | Description |
---|---|---|
data |
RowData
|
data to be visualized |
columnInfo |
Array.<module:columns.Column>
|
information about columns |
columnGroups |
Array.<module:columns~ColumnGroup>
|
column groups |
rowInfo |
Array.<RowInfo>
|
information about rows |
rowGroups |
Array.<RowGroup>
|
row groups |
palettes |
module:palettes~PaletteMapping
|
palettes used in the heatmap |
legends |
Array.<module:legends~LegendInfo>
|
legends to be displayed |
positionArgs |
PositionOptions
|
position arguments |
options |
HeatmapOptions
|
heatmap options |
svg |
SVGElement
|
SVG element to render the heatmap in |
Properties:
Name | Type | Description |
---|---|---|
positionArgs |
PositionArgs
|
|
options |
HeatmapOptions
|
|
svg |
SVGElement
|
SVG element to render the heatmap in |
data |
RowData
|
data to be visualized |
columnInfo |
Array.<module:columns.Column>
|
information about columns |
columnGroups |
Map.<string, module:columns~ColumnGroup>
|
column groups |
rowInfo |
Array.<RowInfo>
|
information about rows |
rowGroups |
Map.<string, module:columns~ColumnGroup>
|
row groups |
palettes |
module:palettes~PaletteMapping
|
palettes used in the heatmap |
legends |
Array.<module:legends~LegendInfo>
|
legends to be displayed |
Methods
# protected calculateOptions()
Determines if we render row groups and in which order.
# protected hideTooltip()
# protected indicateSort()
Draws an arrow indicating the sort order near the corresponding column.
# listen()
Adds event listeners to the SVG element to show and hide the tooltip.
# protected onColumnClick()
Event handler for column click to sort the data and rerender the heatmap.
# protected onMouseMove()
Event handler for mouse move to trigger showing the tooltip.
# render()
Renders the heatmap, calling the necessary functions in order.
# protected renderStripedRows()
Renders the heatmap's striped background.