KoalaPlotTheme

fun KoalaPlotTheme(sizes: Sizes = KoalaPlotTheme.sizes, animationSpec: AnimationSpec<Float> = KoalaPlotTheme.animationSpec, axis: Axis = KoalaPlotTheme.axis, legendLocation: LegendLocation = KoalaPlotTheme.legendLocation, content: @Composable () -> Unit)

KiwkCharts components use values provided here when retrieving default values.

Use this to configure the overall theme of elements within this KoalaPlotTheme.

Any values that are not set will inherit the current value from the theme, falling back to the defaults if there is no parent KoalaPlotTheme. This allows using a KoalaPlotTheme at the top of your application, and then separate KoalaPlotTheme(s) for different screens / parts of your UI, overriding only the parts of the theme definition that need to change.

Parameters

sizes

Defines sizes for various elements

animationSpec

How graph generation should be animated

axis

Axis and grid visual characteristics

legendLocation

Where legends should be located within Charts