Skip to content

No value passed for parameter 'plotType' when trying to create piechart or donut chart #185

Open
@olamao

Description

@olamao

I am trying to create a pie chart or donut chart using the code provided to define slices:

val pieChartData = PieChartData(
slices = listOf(
PieChartData.Slice("SciFi", 65f, Color(0xFF333333)),
PieChartData.Slice("Comedy", 35f, Color(0xFF666a86)),
PieChartData.Slice("Drama", 10f, Color(0xFF95B8D1)),
PieChartData.Slice("Romance", 40f, Color(0xFFF53844))
)
)

However, there is a second parameter called plotType which is missing and I try to introduce it but it cannot be found on the library.

Image

if I use the autocomplete from android studio...

Image

I would appreciate if you could help me, please

mao

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