HeatmapChartDefaults

Defaults for heatmap charts.

Properties

Link copied to clipboard

Formats legend and selected values with the shared chart defaults.

Functions

Link copied to clipboard
fun colorScale(colors: List<Color> = listOf(StyleDefaults.heatmapLowColor, StyleDefaults.heatmapHighColor), min: Double? = null, max: Double? = null): HeatmapColorScale

Returns a theme-aware sequential scale from a light tint to the primary color.

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), renderMode: HeatmapRenderMode = HeatmapRenderMode.Cells, colorScale: HeatmapColorScale = colorScale(), cellSpacing: Dp = StyleDefaults.heatmapCellSpacing, xLabels: AxisLabelStyle = AxisLabelDefaults.style(), yLabels: AxisLabelStyle = AxisLabelDefaults.style(), legend: LegendStyle = LegendDefaults.style()): HeatmapChartStyle