kandy 0.6.0 Help

Ribbon Settings

val year by columnOf("2019", "2020", "2021", "2022", "2023") val minCost by columnOf(56.5, 59.9, 60.8, 78.9, 75.5) val maxCost by columnOf(58.1, 69.3, 66.4, 108.3, 92.2) val df = dataFrameOf(year, minCost, maxCost) df.plot { ribbon { x(year) y { axis.name = "cost" scale = continuous(55.0..110.0) } yMin(minCost) yMax(maxCost) fillColor = Color.hex(0x3f21e6) alpha = 0.65 borderLine { color = Color.RED width = 0.8 type = LineType.DASHED } } }
val year = listOf("2019", "2020", "2021", "2022", "2023") val minCost = listOf(56.5, 59.9, 60.8, 78.9, 75.5) val maxCost = listOf(58.1, 69.3, 66.4, 108.3, 92.2) plot { ribbon { x(year) y { axis.name = "cost" scale = continuous(55.0..110.0) } yMin(minCost) yMax(maxCost) fillColor = Color.hex(0x3f21e6) alpha = 0.65 borderLine { color = Color.RED width = 0.8 type = LineType.DASHED } } }
Ribbon Settings
Last modified: 10 May 2024