Pie Base
val value by columnOf(15, 22, 40, 7, 31)
val type by columnOf("A", "B", "C", "A", "D")
val df = dataFrameOf(value, type)
df.plot {
pie {
slice(value)
fillColor(type)
}
}
val value = listOf(15, 22, 40, 7, 31)
val type = listOf("A", "B", "C", "A", "D")
plot {
pie {
slice(value)
fillColor(type, "type")
}
}
Last modified: 05 August 2024