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.
Questions tagged [htmlwidgets]
422 questions
0
votes
0 answers
R html widget: annoying return symbols
I'm converting an R DT table to an html widget.
The widgets have the annoying carriage return symbols. Example of carriage return issue:
The dataframe is all_p_22
My code:
library(htmlwidgets)
library(DT)
tab10a <- datatable(all_p_22,
…

Ben Reid
- 1
0
votes
0 answers
I'm using Flutter HtmlWidget for displaying Vimeo video but the issue is for android devices i'm not getting fullscreen button
-------------- Original With issue --------------
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: HtmlWidget('
0
votes
0 answers
How can my rendered RMarkdown/Quarto document with html widgets be linked to a live csv?
Correct me if I'm wrong: The examples online are generally for a static data set. The executed R code reads data into an R data frame and creates the html widgets to plot it. Upon rendering the .Rmd or .qmd, that data set is baked into the html…

Arthur
- 1,248
- 8
- 14
0
votes
1 answer
How to move Sankey first node text to left
I am creating a sankey plot (migration form):
library(tidyverse)
library(networkD3)
library(htmlwidgets)
links <- data.frame(source = c("a","b","a","a","c","c","d","e","e"),
target =…

Kevin Li
- 79
- 5
0
votes
1 answer
How to simplify the JS code in this R shiny code?
The below code I found at How to display a scaled up image in an popup window on mouse hover or on click event on an image displayed in a rhandsontable cell in RShiny? (but wrapped in Shiny) almost gets at what I'm trying to do with widgets in…

Village.Idyot
- 1,359
- 2
- 8
0
votes
0 answers
Align nodes horizontally based on group with networkD3 sankeyNetwork in R
I think the answer to this question is "it's not currently supported", which is fine, but I'm hoping to build a sankey diagram with the nodes aligned horizontally based on their group. I found this answer, which allows it to be done manually after…

Daniel Anderson
- 2,394
- 13
- 26
0
votes
1 answer
How to include a leaflet map (html widget) into a Word or PowerPoint document?
I teach Leaflet to my students to map and analyze spatial data.
I would like them to present some of their work in PowerPoint, Word, and/or PDF while maintaining the interactive features of the leaflet maps.
Is that achievable without Rmarkdown? How…

Max
- 13
- 2
0
votes
1 answer
How to stop html widget from moving to the bottom of the shiny app following input
I am trying to embed a custom html widget (ideogram) into a box in a shiny-dashboard which receives an input file and draws a plot. However, when I upload a file the widget moves from the intended box (title="Title1") to bottom of dashboard app.…

Cocoa99
- 93
- 7
0
votes
1 answer
How to show the timeline at the top of a timevis
Is it possible to show the time/date at the top of a timevis (and not at the bottom) ?
timevis(
data.frame(id = 1:2,
content = c("one", "two"),
start = c("2016-01-10", "2016-01-12"))
)
thanks

Felipe
- 719
- 8
- 20
0
votes
1 answer
R: Align and center text using foreignObject and Sankeynetwork
I created this sankey network:
library(networkD3)
library(htmlwidgets)
library(data.table)
set.seed(1999)
links <- data.table(
src = rep(0:4, times=c(1,1,2,3,5)),
target = sample(1:11, 12, TRUE),
value = sample(100, 12)
)[src < target, ] #…

Ai4l2s
- 525
- 2
- 9
0
votes
1 answer
How to visualize simple network in R? With or without D3
I need to visualize the connections between developers in repo1 and repo2.
In particular, I need to show:
How some (not all) devs are active in both repos.
Some devs are more active than others (the number of 'comm' or commits should be reflected…

Kasi
- 235
- 2
- 11
0
votes
1 answer
How I can configure TinyMCE HTMLFIELD to allow users to browse their file explorer/finder and upload an image or paste url
I am working on Django app and I have downloaded tinymce to help me build a html widget, then I created HTMLFIELD in my model.
(as the screenshot show). it seems by default, the add image tab only has image url source to add, how I can make it give…

Yusuf
- 2,295
- 7
- 15
- 34
0
votes
1 answer
NetworkD3 sankey plot gives the wrong colors (user-defined colors)
I created a Sankey diagram with the function sankeyNetwork() from the package networkD3. I defined the colors for each node manually with the argument "colourScale" but the plot shows the wrong color for the node named "Solicitação reprovada pelo…

Luisa Souza
- 3
- 1
0
votes
1 answer
R - networkD3 issues
I am using networkD3 in R to display my data (sankeyNetwork function). I ran into several issues that do not seem to have solutions available.
Issue 1:
If node names similar, the same color is used, even though in total, they differ
e.g. if the…

Ferdi
- 81
- 7
0
votes
1 answer
Print HTML formatted text in Jupyter with R from the list of citations of loaded packages
I have a R variable containing some html content inside, for exemple :
myvar = "
Section Title
" I would like to print it not asSection Title
but as a formated h3 title in html or markdown that jupyter notebook understands. I have…
vinalti
- 966
- 5
- 26