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")
}
}
val df = dataFrameOf(
"value" to columnOf(15, 22, 40, 7, 31),
"type" to columnOf("A", "B", "C", "A", "D")
)
df.plot {
pie {
slice(value)
fillColor(type)
}
}
Last modified: 15 December 2025