Updated ApexCharts.js to 3.41.0

This commit is contained in:
pvictor 2023-06-12 09:51:06 +02:00
parent b7ed86e556
commit 24c552ea68
7 changed files with 42 additions and 25 deletions

View File

@ -1,5 +1,5 @@
Package: apexcharter
Version: 0.4.0.9200
Version: 0.4.0.9300
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,7 +1,7 @@
apexcharter 0.4.1
==================
* Updated ApexCharts.js to 3.40.0 (new chart type: dumbbell chart).
* Updated ApexCharts.js to 3.41.0 (new charts type: dumbbell chart and funnel chart).
* `apex()` : added support for boxplot.
* New function `ax_forecast_data_points()` to mark points as forecasted values.

View File

@ -3,7 +3,7 @@ library(apexcharter)
data("presidential", package = "ggplot2")
# Basic (with formated date in tooltip)
apex(presidential, aes(x = name, start = start, end = end), "timeline") %>%
apex(presidential, aes(x = name, start = start, end = end), "timeline") %>%
ax_tooltip(
x = list(
format = "yyyy"
@ -11,20 +11,37 @@ apex(presidential, aes(x = name, start = start, end = end), "timeline") %>%
)
# With groups
apex(presidential,
aes(x = name, start = start, end = end, group = party),
"timeline")
apex(
presidential,
aes(x = name, start = start, end = end, group = party),
"timeline"
)
# With groups but force position
apex(presidential,
aes(x = name, start = start, end = end, group = party),
"timeline") %>%
ax_xaxis(categories = presidential$name)
# Bush appears twice
apex(
presidential,
aes(x = name, start = start, end = end, group = party),
"timeline"
) %>%
ax_plotOptions(
bar = bar_opts(rangeBarGroupRows = TRUE)
) %>%
ax_xaxis(categories = unique(presidential$name))
# With custom colors
presidential$color <- ifelse(presidential$party == "Democratic", "#00355f", "#c51c22")
apex(presidential,
aes(x = name, start = start, end = end, fill = color),
"timeline")
apex(
presidential,
aes(x = name, start = start, end = end, group = party),
"timeline"
) %>%
ax_plotOptions(
bar = bar_opts(rangeBarGroupRows = TRUE)
) %>%
ax_xaxis(categories = unique(presidential$name)) %>%
ax_colors_manual(list(
Democratic = "#00355f",
Republican = "#c51c22"
))

File diff suppressed because one or more lines are too long

View File

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

14
package-lock.json generated
View File

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

View File

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