Compare commits

...

2 Commits

Author SHA1 Message Date
pvictor bbda86de93 fix heatmap xaxis (force character) 2023-08-23 10:42:59 +02:00
pvictor 467be227fc Updated ApexCharts.js to 3.41.1 2023-08-23 10:13:17 +02:00
9 changed files with 29 additions and 13 deletions

View File

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

View File

@ -107,6 +107,7 @@ importFrom(rlang,is_function)
importFrom(rlang,is_list) importFrom(rlang,is_list)
importFrom(rlang,is_named) importFrom(rlang,is_named)
importFrom(rlang,is_null) importFrom(rlang,is_null)
importFrom(rlang,quo)
importFrom(rlang,quos) importFrom(rlang,quos)
importFrom(rlang,sym) importFrom(rlang,sym)
importFrom(rlang,syms) importFrom(rlang,syms)

View File

@ -1,3 +1,10 @@
apexcharter 0.4.2
==================
* Updated ApexCharts.js to 3.41.1
apexcharter 0.4.1 apexcharter 0.4.1
================== ==================

View File

@ -212,8 +212,11 @@ is_sized <- function(x) {
any(c("size", "z") %in% names(x)) any(c("size", "z") %in% names(x))
} }
#' @importFrom rlang quo
rename_aes_heatmap <- function(mapping) { rename_aes_heatmap <- function(mapping) {
if (is.null(mapping["x"]))
stop("apex(..., type = 'heatmap') must have an 'x' aesthetic", call. = FALSE)
mapping[["x"]] <- quo(as.character(!!mapping[["x"]]))
n_mapping <- names(mapping) n_mapping <- names(mapping)
n_mapping[n_mapping == "y"] <- "group" n_mapping[n_mapping == "y"] <- "group"
if ("fill" %in% n_mapping) { if ("fill" %in% n_mapping) {

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! /*!
* ApexCharts v3.41.0 * ApexCharts v3.41.1
* (c) 2018-2023 ApexCharts * (c) 2018-2023 ApexCharts
* Released under the MIT License. * Released under the MIT License.
*/ */

14
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"apexcharts": "^3.41.0", "apexcharts": "^3.41.1",
"d3-format": "^3.0.1" "d3-format": "^3.0.1"
}, },
"devDependencies": { "devDependencies": {
@ -366,9 +366,9 @@
} }
}, },
"node_modules/apexcharts": { "node_modules/apexcharts": {
"version": "3.41.0", "version": "3.41.1",
"resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.41.0.tgz", "resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.41.1.tgz",
"integrity": "sha512-FJXA7NVjxs1q+ptR3b1I+pN8K/gWuXn+qLZjFz8EHvJOokdgcuwa/HSe5aC465HW/LWnrjWLSTsOQejQbQ42hQ==", "integrity": "sha512-kta8fhXrfZYqW7K9kF7FqZ6imQaC6moyRgcUZjwIky/oeHVVISSN/2rjUIvZXnwxWHiSdDHMqLy+TqJhB4DXFA==",
"dependencies": { "dependencies": {
"svg.draggable.js": "^2.2.2", "svg.draggable.js": "^2.2.2",
"svg.easing.js": "^2.0.0", "svg.easing.js": "^2.0.0",
@ -2003,9 +2003,9 @@
"requires": {} "requires": {}
}, },
"apexcharts": { "apexcharts": {
"version": "3.41.0", "version": "3.41.1",
"resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.41.0.tgz", "resolved": "https://registry.npmjs.org/apexcharts/-/apexcharts-3.41.1.tgz",
"integrity": "sha512-FJXA7NVjxs1q+ptR3b1I+pN8K/gWuXn+qLZjFz8EHvJOokdgcuwa/HSe5aC465HW/LWnrjWLSTsOQejQbQ42hQ==", "integrity": "sha512-kta8fhXrfZYqW7K9kF7FqZ6imQaC6moyRgcUZjwIky/oeHVVISSN/2rjUIvZXnwxWHiSdDHMqLy+TqJhB4DXFA==",
"requires": { "requires": {
"svg.draggable.js": "^2.2.2", "svg.draggable.js": "^2.2.2",
"svg.easing.js": "^2.0.0", "svg.easing.js": "^2.0.0",

View File

@ -35,7 +35,7 @@
"webpack-merge": "^5.8.0" "webpack-merge": "^5.8.0"
}, },
"dependencies": { "dependencies": {
"apexcharts": "^3.41.0", "apexcharts": "^3.41.1",
"d3-format": "^3.0.1" "d3-format": "^3.0.1"
} }
} }

View File

@ -306,10 +306,15 @@ apex(mpg, aes(hwy, class), "boxplot") %>%
ax_plotOptions( ax_plotOptions(
boxPlot = boxplot_opts(color.upper = "#8BB0A6", color.lower = "#8BB0A6" ) boxPlot = boxplot_opts(color.upper = "#8BB0A6", color.lower = "#8BB0A6" )
) %>% ) %>%
ax_stroke(colors = list("#2A5769")) ax_stroke(colors = list("#2A5769")) %>%
ax_grid(
xaxis = list(lines = list(show = TRUE)),
yaxis = list(lines = list(show = FALSE))
)
``` ```
## Dumbbell charts ## Dumbbell charts
Create Dumbbell chart with: Create Dumbbell chart with: