Skip to content

Commit

Permalink
Update of the billboard.js library to 3.10.0. + new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Oct 25, 2023
1 parent ed6d147 commit dd5b3bc
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: billboarder
Title: Create Interactive Chart with the JavaScript 'Billboard' Library
Version: 0.4.1
Version: 0.4.1.9000
Authors@R: c(
person("Victor", "Perrier", email = "victor.perrier@dreamrs.fr", role = c("aut", "cre")),
person("Fanny", "Meyer", role = "aut"),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
billboarder 0.4.2
==================

* Update of the billboard.js library to 3.10.0.
* `set_theme()` : new theme modern available.



billboarder 0.4.1
==================

Expand Down
2 changes: 1 addition & 1 deletion R/bb_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ bb_radarchart <- function(bb, data, mapping = NULL, ...) {
#' @param mapping Mapping of variables on the chart, see \code{\link{bbaes}}.
#' @param ... Arguments passed to \code{\link{bb_treemap}}.
#'
#' @return
#' @return A \code{billboard} \code{htmlwidget} object.
#' @export
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/billboarder.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ billboard_dependencies <- function() {
}
htmlDependency(
name = "billboard",
version = "3.9.4",
version = "3.10.0",
src = c(file = "htmlwidgets/lib"),
package = "billboarder",
script = "billboard/billboard.pkgd.min.js",
Expand Down
6 changes: 3 additions & 3 deletions R/theme.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#' Set theme and default colors for Billboard charts
#'
#' @param name Name of the theme, possible values are : \code{"billboard"},
#' \code{"insight"}, \code{"graph"}, \code{"datalab"}.
#' @param name Name of the theme, possible values are : `"billboard"`,
#' `"insight"`, `"graph"`, `"datalab"`, `"modern"`.
#'
#' @note You can only use one theme and palette at a time (in Shiny applications or Markdown documents).
#'
Expand All @@ -28,7 +28,7 @@
#' bb_legend(position = "inset", inset = list(anchor = "top-right")) %>%
#' bb_labs(title = "Renewable energy production",
#' caption = "Data source: RTE (https://opendata.rte-france.com)")
set_theme <- function(name = c("billboard", "insight", "graph", "datalab")) {
set_theme <- function(name = c("billboard", "insight", "graph", "datalab", "modern")) {
name <- match.arg(arg = name)
options("billboard.theme" = paste0(name, ".min.css"))
}
Expand Down
4 changes: 2 additions & 2 deletions inst/htmlwidgets/lib/billboard/billboard.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions inst/htmlwidgets/lib/billboard/billboard.pkgd.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions inst/htmlwidgets/lib/billboard/datalab.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dd5b3bc

Please sign in to comment.