Simple Area

Edit pageLast modified: 22 November 2023
val dataframe = dataFrameOf(
    "years" to listOf("2017", "2018", "2019", "2020", "2021", "2022", "2023"),
    "cost" to listOf(56.1, 22.7, 34.7, 82.1, 53.7, 68.5, 39.9)
)

dataframe.plot {
    area {
        x("years")
        y("cost")
    }
}
Simple Area