Simple Line

Edit pageLast modified: 22 November 2023
val years by columnOf("2018", "2019", "2020", "2021", "2022")
val cost by columnOf(62.7, 64.7, 72.1, 73.7, 68.5)
val df = dataFrameOf(years, cost)

df.plot {
    line {
        x(years)
        y(cost)
    }
}
Simple Line