Simple Line
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)
}
}
val years = listOf("2018", "2019", "2020", "2021", "2022")
val cost = listOf(62.7, 64.7, 72.1, 73.7, 68.5)
plot {
line {
x(years)
y(cost)
}
}
Last modified: 22 November 2023