Pie With Count

Edit pageLast modified: 05 August 2024
val continent by columnOf(
    "EU", "AF", "SA", "OC", "EU", "AF", "SA", "AF", "AS", "SA",
    "OC", "OC", "SA", "NA", "AF", "NA", "EU", "AF", "OC", "SA",
    "AF", "SA", "OC", "EU", "AF"
)
val df = dataFrameOf(continent)

df.plot {
    statCount(continent) {
        pie {
            slice(Stat.count)
            fillColor(Stat.x named "continent")
            size = 25.0
        }
    }
    layout {
        style(Style.Void)
    }
}
Pie With Count