Package-level declarations

Types

Link copied to clipboard

Defaults for scatter and bubble charts.

Link copied to clipboard
class ScatterChartStyle(val chartContainerStyle: ChartContainerStyle, val points: ScatterPointStyle, val axes: AxesStyle, val range: ScatterRangeStyle, val legend: LegendStyle)

Presentation for scatter and bubble charts.

Link copied to clipboard
data class ScatterData(val series: ImmutableList<ScatterSeries>)

Numeric points grouped into independently colored series.

Link copied to clipboard
data class ScatterPoint(val x: Double, val y: Double, val size: Double? = null)

A point positioned by numeric X and Y values, with an optional bubble size.

Link copied to clipboard
data class ScatterPointStyle(val color: Color, val colors: ImmutableList<Color>, val alpha: Float, val size: Dp, val minSize: Dp, val maxSize: Dp)

Point and bubble appearance. Bubble radii are interpolated by area from minSize to maxSize.

Link copied to clipboard
data class ScatterRangeStyle(val xMin: Double? = null, val xMax: Double? = null, val yMin: Double? = null, val yMax: Double? = null)

Optional fixed bounds for numeric axes. Null bounds are derived from data. Out-of-range points draw at the nearest plot edge.

Link copied to clipboard
data class ScatterSeries(val name: String? = null, val points: ImmutableList<ScatterPoint>)

One named or unnamed scatter series.

Functions

Link copied to clipboard
fun ScatterChart(data: ScatterData, modifier: Modifier = Modifier, style: ScatterChartStyle = ScatterChartDefaults.style(), title: String? = null, selection: ChartSelection = rememberChartSelection(), interactionEnabled: Boolean = true, animateOnStart: Boolean = true, xValueFormatter: ChartValueFormatter = ScatterChartDefaults.axisValueFormatter, yValueFormatter: ChartValueFormatter = xValueFormatter, sizeValueFormatter: ChartValueFormatter = xValueFormatter)

Draws points by numeric X/Y coordinates. Set ScatterPoint.size to encode bubble area.