kandy 0.8.0-RC1 Help

Candlestick Simple

val df = dataFrameOf( "month" to listOf("Jan", "Feb", "Mar", "Apr", "May"), "open" to listOf(14.2, 6.7, 8.8, 11.2, 4.0), "high" to listOf(15.5, 9.6, 10.7, 11.7, 9.9), "low" to listOf(7.5, 6.1, 8.5, 5.4, 4.0), "close" to listOf(8.0, 8.6, 10.7, 6.5, 9.8) ) df.plot { candlestick("month", "open", "high", "low", "close") }
val month = listOf("Jan", "Feb", "Mar", "Apr", "May") val open = listOf(14.2, 6.7, 8.8, 11.2, 4.0) val high = listOf(15.5, 9.6, 10.7, 11.7, 9.9) val low = listOf(7.5, 6.1, 8.5, 5.4, 4.0) val close = listOf(8.0, 8.6, 10.7, 6.5, 9.8) plot { candlestick(month, open, high, low, close) }
Candlestick Simple
Last modified: 27 March 2024