Heatmap Chart
fun HeatmapChart(data: HeatmapData, modifier: Modifier = Modifier, style: HeatmapChartStyle = HeatmapChartDefaults.style(), title: String? = null, selection: ChartSelection = rememberChartSelection(), interactionEnabled: Boolean = true, animateOnStart: Boolean = true, valueFormatter: ChartValueFormatter = HeatmapChartDefaults.valueFormatter)(source)
Draws a matrix of values on two category axes, colored by HeatmapChartStyle.colorScale.
HeatmapChartStyle.renderMode draws discrete cells by default, or a color field interpolated from the cell values. Both modes share the data, color scale, legend, and selection.
Parameters
selection
Selection by cell index, row * columns.size + column; see HeatmapData.cellIndex. Missing cells cannot be selected. In both modes, the selection reports the cell's own value, never an interpolated one.
value Formatter
Formats the legend bounds and the selected value.