Package-level declarations

Types

Link copied to clipboard

Defaults for heatmap charts.

Link copied to clipboard
class HeatmapChartStyle(val chartContainerStyle: ChartContainerStyle, val renderMode: HeatmapRenderMode, val colorScale: HeatmapColorScale, val cellSpacing: Dp, val xLabels: AxisLabelStyle, val yLabels: AxisLabelStyle, val legend: LegendStyle)

Presentation for heatmap charts.

Link copied to clipboard
data class HeatmapColorScale(val colors: ImmutableList<Color>, val min: Double? = null, val max: Double? = null)

Maps values to colors, shared by both render modes and the legend.

Link copied to clipboard
data class HeatmapData(val columns: ImmutableList<String>, val rows: ImmutableList<String>, val values: ImmutableList<ImmutableList<Double?>>)

A matrix of values on two category axes, such as activity per weekday and hour.

Link copied to clipboard

How a HeatmapChart paints its values.

Functions

Link copied to clipboard
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)

Draws a matrix of values on two category axes, colored by HeatmapChartStyle.colorScale.