Candlestick Simple

Edit pageLast modified: 27 March 2024
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")
}
Candlestick Simple