Skip to content

Bar graph examples use deprecated DefaultVerticalBar #4

@agent-polyblank

Description

@agent-polyblank

Bar graph examples from the documentation [here](https://koalaplot.github.io/docs/xygraphs/bar_plots/#single-vertical-bar-plot). Results in error:

Argument type mismatch: actual type is 'ComposableFunction1<BarScope, Unit>', but '@Composable() ComposableFunction4<BarScope, @ParameterName(...) Int, @ParameterName(...) Int, @ParameterName(...) VerticalBarPlotEntry<String, Float>, Unit>' was expected.

This is because DefaultVerticalBar was replaced by DefaultBar in version 0.10.0 see here also and also need to specify the arguments to get the correct type @Composable (BarScope.(Int, Int, VerticalBarPlotEntry<X, Float>) -> Unit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions