Questions tagged [htmlwidgets]
Use the this tag for questions regarding the htmlwidgets for R JavaScript visualization library. For questions regarding generic HTML widgets, use the html and widget tags.
436
questions
0
votes
0
answers
38
views
Resolve conflict between jquery, shiny.fluent, highcharter in r shiny app
I'm completely new to adding scripts.js to r shiny.
I'm trying to dynamically adjust height of sidebar dependent on height of main content. So javascript required.
Including useShinyjs() in my UI,I ...
2
votes
1
answer
29
views
Get the URL of the htmlwidgets widget in RStudio viewer panel
I have a package for making interactive plots using htmlwidgets and I would like to expose some of the client-side state so that e.g. the user can highlight some data points and then call a function ...
0
votes
0
answers
31
views
Error in HtmlWidget || RenderLayoutBuilder class does not support dry layout || RenderBox.debugCannotComputeDryLayout
I am receiving JSON data in html format in API response, and I have to show this in screen. I am using HTMLWidget by plugin but there is an issue. I don't want to wrap this in alert box an show dialog ...
0
votes
0
answers
31
views
Solved: how can I avoid unintended New Lines with customWidgetBuilder in flutter_widget_from_html_core?
I have a problem with the flutter_widget_from_html_core plugin when I use customWidgetBuilder. When I add the custom tag to my HTML and use customWidgetBuilder to build a custom widget with that tag, ...
0
votes
0
answers
28
views
Passing Rmarkdown html widgets to Shiny
I have the following interactive Rmarkdown file and I want to pass it to Shiny as I want to download it as both a word document and I want to display a preview of it. As you can see in the Rmarkdown ...
3
votes
4
answers
97
views
How to reduce the size of R plotly html output by rounding plot values
I am trying to reduce the size of my RMarkdown html report and more importantly, make them faster to open. The html report consists of a large number of R Plotly plots with each plot containing a ...
2
votes
0
answers
151
views
HTML widgets no longer rendering in R Studio Viewer pane after update to R 4.4.0
After updating to R 4.4.0, many different data visualizations that depend on the htmlwidgets library, such as leaflet, echarts4r and highcharter, fail to render in the R Studio Viewer pane. These ...
1
vote
1
answer
57
views
How to stop the double click to unzoom?
I am trying to disable "double-click to unzoom" behavior. I found this parameter in highlight:
highlight(on = NULL, off = "plotly_doubleclick")
but to no avail.
I want to double-...
0
votes
1
answer
24
views
How can I set a single cell to `date` format using rhandsontable?
Usin the {rhandsontable} package it's possible to create a table where date columns include a dropdown for each cell, both providing a slick UI and validation of user inputs.
I want to set a single ...
1
vote
0
answers
33
views
RStudio Viewer slower than browser window
I'm working on a package for interactive visualization in R using htmlwidgets and code I've written in TypeScript/JavaScript.
This works fairly well but I've noticed that the apps are a bit laggy in ...
0
votes
1
answer
49
views
Network D3 Sankey Diagrams link dataframe creation: bypassing nodes with NA, and automatic correction of values?
I am trying to create a Sankey Diagram using NetworkD3 to map out patient flow through an A&E department, with example dataframe:
`First_Contact <- c("UTC", "UTC", "111&...
0
votes
1
answer
28
views
HTML Widget not displaying in nested functions
I'm nesting functions within a function to be able to easily create content in a flexdashboard also generating markdown bits. I have a very abstract example but it does replicate the problem.
I'd be ...
0
votes
1
answer
59
views
Error in init.ts when using jsTreeR's grid parameter
I've already raised the issue here and here. By now a workaround exists however, I still don't understand the root cause.
When running the following app using the latest CRAN version of library(shiny) ...
0
votes
1
answer
44
views
Plot is showing in the viewer pane, not in the plot pane
# install.packages("networkD3")
library("networkD3")
concept <- c("Vulnerability", "Adaptation", "Resilience")
nodes <- data.frame(concept)
...
1
vote
1
answer
78
views
Moving from r2d3 to htmlwidget
I'm trying to get the right workflow to move something i created using {r2d3} to {htmlwidgets}. For example, the following code works in r2d3 and creates a very simple x-axis:
// set up constants used ...