kandy 0.6.0 Help

Simple Bars

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 (%)" } } }
val city = listOf("London", "Paris", "Berlin", "Madrid", "Rome") val perc = listOf(45, 50, 60, 40, 30) plot { layout.title = "Public Transport Usage in European Cities" bars { x(city) { axis.name = "City" } y(perc) { axis.name = "Public Transport Usage (%)" } } }
Simple Bars
Last modified: 10 May 2024