Skip to content

Commit ce6fd04

Browse files
committed
Merge branch 'master' of https://github.com/JohnCoene/echarts4r
2 parents 55a3aee + 19e61a1 commit ce6fd04

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

R/echarts4r.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ e_chart <- e_charts
416416
#' e_charts_("qsec") |>
417417
#' e_line(mpg) |>
418418
#' e_data(points, qsec) |>
419-
#' e_scatter(mpg, color = "blue")
419+
#' e_scatter(mpg, color = "red", symbol_size = 20)
420420
#' @rdname init
421421
#' @export
422422
e_data <- function(e, data, x) {

R/themes.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ e_theme <- function(
4242
"westeros", "wonderland"
4343
)
4444
) {
45-
name <- match.arg(name)
45+
# cannot match.arg we need to support custom themes
46+
name <- name[1]
4647

4748
# add name to register
4849
e$x$theme <- name

man/init.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)