-
-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Billboarder graphs are not loaded from version 2.11 onwards #2378
Comments
Hi @koolmees can we get the Rmd content you are using ? |
A simple example works ok (from billboarder readme ) ---
title: "Untitled"
output: html_document
---
Some text, now to write and read in a png
```{r, echo = FALSE}
library("billboarder")
# data
data("prod_par_filiere")
# a bar chart !
billboarder() %>%
bb_barchart(data = prod_par_filiere[, c("annee", "prod_hydraulique")], color = "#102246") %>%
bb_y_grid(show = TRUE) %>%
bb_y_axis(tick = list(format = suffix("TWh")),
label = list(text = "production (in terawatt-hours)", position = "outer-top")) %>%
bb_legend(show = FALSE) %>%
bb_labs(title = "French hydraulic production",
caption = "Data source: RTE (https://opendata.rte-france.com)")
``` I am using Pandoc 2.18
|
Hello again! I dug around more. Your sample works for a regular html_document, but not when I use flexdashboard. This most likely applies to all graphs, I just didn't consider flexdashboard to be a possible issue. This is the .Rmd that is now causing issues:
Using Pandoc 2.6:
|
Thanks for the reproducible example. That is what helps find root cause of issue usually. Here is what I get in Browser Console when trying to view the HTML
It seems you already had an issue with flexdashboard and billboarders so maybe there is a conflict between the two at some point. They will know more about the JS part to help find it probably |
Related post: https://stackoverflow.com/questions/72602481/billboarder-package-not-working-anymore-in-combination-with-rmarkdown
Essentially something goes wrong in the rendering process when trying to plot a billboarder (billboard.js) graph in an html_document. This problem only starts occurring from versions 2.11 onwards.
The text was updated successfully, but these errors were encountered: