Skip to content

Commit

Permalink
CanvasXpress Version 48.8
Browse files Browse the repository at this point in the history
  • Loading branch information
neuhausi committed Mar 29, 2024
1 parent f9d1b5b commit 064345c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/ggplot_as_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ gg_scales <- function (o) {
for (i in 1:n) {
s <- o$scales$scales[[i]]
if (s$aesthetics[1] == "colour" || s$aesthetics[1] == "fill") {
if (length(s$scale_name) > 0 && stringr::str_detect(s$scale_name, "gradient")) {
if (!is.null(s$scale_name) && length(s$scale_name) > 0 && stringr::str_detect(s$scale_name, "gradient")) {
if (s$scale_name == "gradient2") {
s$train(c(-1, 1))
} else {
Expand Down
6 changes: 3 additions & 3 deletions inst/htmlwidgets/lib/canvasXpress/canvasXpress.min.js

Large diffs are not rendered by default.

0 comments on commit 064345c

Please sign in to comment.