updated NEWS and vignette

This commit is contained in:
pvictor 2020-06-13 13:04:23 +02:00
parent 7712ab2e64
commit 9d5158c024
3 changed files with 41 additions and 0 deletions

View File

@ -2,6 +2,7 @@ apexcharter 0.1.5
==================
* 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 new charts type: area-spline, area-step and step.

26
man/candles.Rd Normal file
View File

@ -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}

View File

@ -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"
)
```