kandy
 
0.8.0-RC1
Because kandy 0.8.0-RC1 is still in development, this documentation may not be entirely accurate and is subject to change.

Area with Reversed Axis

Edit pageLast modified: 22 November 2023
val `Day of the Week` by columnOf("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun")
val `Star Rating (Reversed)` by columnOf(4, 2, 1, 2, 3, 4, 1)

plot {
    layout.title = "Weekly Star Ratings"
    layout.subtitle = "A reversed perspective"
    area {
        x(`Day of the Week`)
        y(`Star Rating (Reversed)`) {
            scale = continuous(0..5, transform = Transformation.REVERSE)
        }
        fillColor = Color.hex("#FCF84A")
        alpha = 0.75
    }
}
Simple Area