kandy 0.7.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: 06 December 2023