updated Apexcharts to 3.21.0 + treemap example

This commit is contained in:
pvictor 2020-09-28 16:42:42 +02:00
parent 7e64d25710
commit dbeb316074
7 changed files with 42 additions and 6 deletions

View File

@ -1,5 +1,5 @@
Package: apexcharter
Version: 0.1.6
Version: 0.1.6.900
Title: Create Interactive Chart with the JavaScript 'ApexCharts' Library
Description: Provides an 'htmlwidgets' interface to 'apexcharts.js'.
'Apexcharts' is a modern JavaScript charting library to build interactive charts and visualizations with simple API.

View File

@ -1,3 +1,11 @@
apexcharter 0.1.7
==================
* Updated ApexCharts.js to 3.21.0
* New chart type: treemap, see vignette for example.
apexcharter 0.1.6
==================

View File

@ -52,6 +52,7 @@ apex <- function(data, mapping, type = "column", ...,
"radar",
"scatter", "bubble",
"heatmap",
"treemap",
"timeline",
"candlestick"
)

View File

@ -1,7 +1,7 @@
dependencies:
- name: apexcharts
version: 3.20.1
src: htmlwidgets/lib/apexcharts-3.20
version: 3.21.0
src: htmlwidgets/lib/apexcharts-3.21
script: apexcharts.min.js
- name: apexcharter-css
version: 0.1.0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -193,7 +193,7 @@ apex(data = new_mtcars, type = "radar", mapping = aes(x = model, y = value, grou
## Heatmap
Create heatmap with :
Create a heatmap with :
```{r heatmap}
txhousing2 <- txhousing %>%
@ -210,6 +210,19 @@ apex(
```
## Treemap
Create a treemap with:
```{r treemap}
data("mpg", package = "ggplot2")
n_manufac <- dplyr::count(mpg, manufacturer)
apex(n_manufac, aes(x = manufacturer, y = n), "treemap")
```
## Candlestick
Create a candlestick chart with: