updated Apexcharts to 3.21.0 + treemap example
This commit is contained in:
parent
7e64d25710
commit
dbeb316074
|
@ -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.
|
||||
|
|
8
NEWS.md
8
NEWS.md
|
@ -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
|
||||
==================
|
||||
|
||||
|
|
1
R/apex.R
1
R/apex.R
|
@ -52,6 +52,7 @@ apex <- function(data, mapping, type = "column", ...,
|
|||
"radar",
|
||||
"scatter", "bubble",
|
||||
"heatmap",
|
||||
"treemap",
|
||||
"timeline",
|
||||
"candlestick"
|
||||
)
|
||||
|
|
|
@ -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
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue