ErrorBars Settings

Edit pageLast modified: 06 December 2023
val years by columnOf("2018", "2019", "2020", "2021", "2022")
val costMin by columnOf(62.7, 64.7, 72.1, 73.7, 68.5)
val costMax by columnOf(68.9, 71.3, 78.9, 76.5, 72.1)
val dataset = dataFrameOf(years, costMin, costMax)

dataset.plot {
    errorBars {
        x(years)
        yMin(costMin)
        yMax(costMax)
        width = 1.1
        borderLine {
            width = 1.5
            color = Color.RED
        }
    }
}
ErrorBars Settings