Skip to content

Commit

Permalink
Fix 7207205 🔨
Browse files Browse the repository at this point in the history
In the excellent PR #32 by @stavralf, I made a small error during the review, which have now been fixed.
  • Loading branch information
serkor1 committed Oct 3, 2024
1 parent 7207205 commit b920c7d
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions vignettes/custom_indicators.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,24 @@ We start by creating a simple `chart`-object with `volume` as it's only indicato
```{r}
# 1) create a simple chart
# object
chart_object <- chart(
ticker = BTC,
main = kline(),
sub = list(
volume()
),
options = list(
dark = FALSE
)
)
# 2) display the chart
# and remove the xaxis
# labels, so it doesnt
# get duplicated when the
#
# NOTE: The chart is wrapped in
# plotly::layout() to avoid
# duplicating xaxis when the
# custom indicators are added
plotly::layout(
p = chart_object,
chart_object <- plotly::layout(
chart(
ticker = BTC,
main = kline(),
sub = list(
volume()
),
options = list(
dark = FALSE
)
),
xaxis = list(
showticklabels=FALSE
showticklabels = FALSE
)
)
```
Expand Down

0 comments on commit b920c7d

Please sign in to comment.