Skip to content

Commit

Permalink
Update plotExtensions.kt to add Plot.candlestick
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph-Hui authored Jul 27, 2023
1 parent 9f4e760 commit cee5c54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public inline fun Plot.table(block: Table.() -> Unit): Table {
return trace
}

public inline fun Plot.candlestick(block: CandleStick.() -> Unit): CandleStick {
val trace = CandleStick(block)
traces(trace)
return trace
}

public fun Plot.text(block: Text.() -> Unit) {
layout.annotation(block)
}
Expand Down

0 comments on commit cee5c54

Please sign in to comment.