Skip to content

Commit

Permalink
fix #219, axis names on boxplot
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Oct 26, 2020
1 parent 74a8118 commit 8f49947
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: echarts4r
Title: Create Interactive Graphs with 'Echarts JavaScript' Version 4
Date: 2020-10-15
Version: 0.3.3
Version: 0.3.4
Authors@R: c(
person("John", "Coene", email = "jcoenep@gmail.com", role = c("aut", "cre", "cph")),
person(given = "Wei", family = "Su", email = "swsoyee@gmail.com", role = "ctb"))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# echarts4r 0.3.4

- Fixed naming of x axis for `e_boxplot` [#219](https://github.com/JohnCoene/echarts4r/issues/219)

# echarts4r 0.3.3

- Added `echarts4rBox`, `renderEcharts4rBox`, and `echarts4rBoxOutput` to create value boxes.
Expand Down
2 changes: 2 additions & 0 deletions R/add_.R
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,8 @@ e_boxplot_ <- function(e, serie, name = NULL, outliers = TRUE, ...) {

# xaxis
xs <- names(e$x$data)[i]
if(is.null(xs))
xs <- serie
e$x$opts$xAxis[[1]]$data <- append(e$x$opts$xAxis[[1]]$data, list(xs))
e$x$opts$xAxis[[1]]$type <- "category"
} else {
Expand Down

0 comments on commit 8f49947

Please sign in to comment.