Simple Bars

Edit pageLast modified: 06 December 2023
val dataset = dataFrameOf(
    "city" to listOf("London", "Paris", "Berlin", "Madrid", "Rome"),
    "perc" to listOf(45, 50, 60, 40, 30)
)

dataset.plot {
    layout.title = "Public Transport Usage in European Cities"
    bars {
        x("city") { axis.name = "City" }
        y("perc") { axis.name = "Public Transport Usage (%)" }
    }
}
Simple Bars