updated NEWS and vignette
This commit is contained in:
parent
7712ab2e64
commit
9d5158c024
1
NEWS.md
1
NEWS.md
|
@ -2,6 +2,7 @@ apexcharter 0.1.5
|
||||||
==================
|
==================
|
||||||
|
|
||||||
* Updated ApexCharts.js to 3.18.1
|
* Updated ApexCharts.js to 3.18.1
|
||||||
|
* Support for candlestick charts in `apex()`.
|
||||||
* `apex()` has a new argument `synchronize` to easily synchronize charts together.
|
* `apex()` has a new argument `synchronize` to easily synchronize charts together.
|
||||||
* `apex()` has new charts type: area-spline, area-step and step.
|
* `apex()` has new charts type: area-spline, area-step and step.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
% Generated by roxygen2: do not edit by hand
|
||||||
|
% Please edit documentation in R/data.R
|
||||||
|
\docType{data}
|
||||||
|
\name{candles}
|
||||||
|
\alias{candles}
|
||||||
|
\title{Candlestick demo data}
|
||||||
|
\format{
|
||||||
|
A data frame with 60 observations and the following 5 variables:
|
||||||
|
\describe{
|
||||||
|
\item{\code{datetime}}{Timestamp.}
|
||||||
|
\item{\code{open}}{Open value.}
|
||||||
|
\item{\code{high}}{Highest value.}
|
||||||
|
\item{\code{low}}{Lowest value.}
|
||||||
|
\item{\code{close}}{Close value.}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\source{
|
||||||
|
Apexcharts (\url{https://apexcharts.com/javascript-chart-demos/candlestick-charts/basic/})
|
||||||
|
}
|
||||||
|
\usage{
|
||||||
|
candles
|
||||||
|
}
|
||||||
|
\description{
|
||||||
|
Candlestick demo data
|
||||||
|
}
|
||||||
|
\keyword{datasets}
|
|
@ -210,4 +210,18 @@ apex(
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Candlestick
|
||||||
|
|
||||||
|
Create a candlestick chart with:
|
||||||
|
|
||||||
|
```{r}
|
||||||
|
apex(
|
||||||
|
candles,
|
||||||
|
aes(x = datetime, open = open, close = close, low = low, high = high),
|
||||||
|
type = "candlestick"
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue