kandy 0.8.3 Help

Line with Reversed Axis

val product = ('A'..'F').toColumn("product") val rating = listOf(10, 7, 3, 5, 2, 1).toColumn("rating") val dataset = dataFrameOf(product, rating) plot(dataset) { line { x(rating) { scale = continuous(min = 0, max = 12) } y(product) { scale = continuous(transform = Transformation.REVERSE) } color = Color.RED alpha = 0.85 } }
val product = ('A'..'F') val rating = listOf(10, 7, 3, 5, 2, 1) plot { line { x(rating) { scale = continuous(min = 0, max = 12) } y(product) { scale = continuous(transform = Transformation.REVERSE) } color = Color.RED alpha = 0.85 } }
val dataset = dataFrameOf( "product" to ('A'..'F').map { it.toString() }.toColumn(), "rating" to columnOf(10, 7, 3, 5, 2, 1) ) plot(dataset) { line { x(rating) { scale = continuous(min = 0, max = 12) } y(product) { scale = continuous(transform = Transformation.REVERSE) } color = Color.RED alpha = 0.85 } }
Line with Reversed Axis
Last modified: 15 December 2025