XYChart Scope
A scope for XY plots providing axis and state context.
Functions
Link copied to clipboard
abstract fun Modifier.hoverableElement(element: @Composable () -> Unit): Modifier
Content copied to clipboard
Properties
Extensions
Link copied to clipboard
Link copied to clipboard
fun <X, Y, E : BarChartEntry<X, Y>> XYChartScope<X, Y>.VerticalBarChart( series: List<List<E>>, modifier: Modifier = Modifier, bar: VerticalBarComposable<E> = { i, _, _ ->
val colors = remember(series.size) { generateHueColorPalette(series.size) }
DefaultVerticalBar(
brush = SolidColor(colors[i]),
modifier = Modifier.fillMaxWidth(KoalaPlotTheme.sizes.barWidth)
)
}, stacked: Boolean = false, maxBarGroupWidth: Float = 0.9f, animationSpec: AnimationSpec<Float> = KoalaPlotTheme.animationSpec)
Content copied to clipboard
A VerticalBarChart to be used in an XYChart and that can plot multiple series either side-by-side or stacked as a stacked bar chart.