kandy 0.8.3 Help

Simple ErrorBars

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) plot { errorBars { x(years) yMin(costMin) yMax(costMax) } }
val years = listOf("2018", "2019", "2020", "2021", "2022") val costMin = listOf(62.7, 64.7, 72.1, 73.7, 68.5) val costMax = listOf(68.9, 71.3, 78.9, 76.5, 72.1) plot { errorBars { x(years) yMin(costMin) yMax(costMax) } }
val df = dataFrameOf( "years" to columnOf("2018", "2019", "2020", "2021", "2022"), "costMin" to columnOf(62.7, 64.7, 72.1, 73.7, 68.5), "costMax" to columnOf(68.9, 71.3, 78.9, 76.5, 72.1) ) df.plot { errorBars { x(years) yMin(costMin) yMax(costMax) } }
Simple ErrorBars
Last modified: 15 December 2025