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
1 answer
Shiny selectizeInput: on click remove the initial selected value
i would like to remove the initial value (selected=) from selectizeInput when the user click on the widget.
Here is a sample code:
library(shiny)
library(dplyr)
ui= fluidPage(
sidebarLayout(
sidebarPanel(
selectizeInput(inputId= "cyl",…

Mal_a
- 3,670
- 1
- 27
- 60
0
votes
2 answers
Troubleshoot Javascript code in onRender() function of htmlWidgets
I am trying to recreate the example called "Create annotation on click event" at (https://plot.ly/javascript/click-events/) in RStudio. In my attempt, I came up with the following tailored code for use in RStudio:
library(plotly)
trace_0 <-…
user2808302
0
votes
1 answer
rpivotTable: dynamic pdf download of pivot table of shinyapp with refreshed adjustment
I would like to ask a question about the pdf download of pivot table using rpivotTable package with the refreshed adjustment.
I am very close to what I want but just need the final step.
Here is my code:
Shiny…

Joanna
- 663
- 7
- 21
0
votes
0 answers
Keep centred focus for fixed axes chart in scatterD3, can I edit the axes value labels?
I am using the scatterD3 library (which I find very eye-pleasing) in R for creating a scatter plot.
I want to keep my axes fixed, but when I do so my points are not in the centre anymore. It is a minor issue I can live with, but, I could easily fix…

Jon Nagra
- 1,538
- 1
- 16
- 36
0
votes
1 answer
Display Edge Label only when Hovering Over it with Cursor - VisNetwork Igraph
Referring back to one of my previous post which contains the full reproducible code: VisNetwork from IGraph - Can't Implement Cluster Colors to Vertices
My goal here is to change some of the visualization options from the visNetwork package graph.…

nak5120
- 4,089
- 4
- 35
- 94
0
votes
1 answer
R Shiny: includeMarkdown cannot render htmlwidgets
This rmd file render ok to html, but the output is empty in shiny. Same problem with other htmlwidets like chartJSRadar
file.rmd:
---
title: "test"
output: html_document
---
```{r}
rpivotTable::rpivotTable(data.frame(a = c(1:10) ) , rows = 'a' …

Eduardo Bergel
- 2,685
- 1
- 16
- 21
0
votes
2 answers
Automating htmlwidget: highchart graph generation for multiple time series
I would like to automate a graph generation using htmlwidget: highchart.
I get the manual process but I have difficulties to generalise it.
For two time series, it is ok, but I would like to extend to a number of time series(ts) not…

YCR
- 3,794
- 3
- 25
- 29
0
votes
1 answer
shinyDND with uiOutput not working
I am attempting to use shinyDND from the server side using uiOuput, renderUI and dragUI but the divs created are not draggable. Example:
library(shiny)
library(shinyDND)
ui <- shinyUI(
mainPanel(
uiOutput("myUI"),
…

MrHopko
- 879
- 1
- 7
- 16
0
votes
1 answer
saving leaflets on R
I am running my R script to create leaflets on my linux machine (ec2 instance) on AWS. I was able to create a leaflet on R (using the leaflet package). I saved the leaflet using saveWidget (htmlwidgets package). I scp the html file to my local…

user3119875
- 151
- 3
- 14
0
votes
0 answers
dygraphs in R markdown tabsets not loaded properly
I am making multiple dygraphs in a R markdown document. Each dygraph should be in it's own tabset. The code for one of my dygraphs is the following:
# Make a dygraph
dygraph(xts_data, main = "Totaal van nieuwe tickets") %>%
dyRangeSelector() %>%
…

Bobby en Bezemer
- 103
- 1
- 1
- 4
-1
votes
1 answer
show edge weights with the forceNetwork function from R networkD3 package
Is there any way, using r, to display edge weights on the graph produced by networkD3::forceNetwork?
-1
votes
1 answer
Formattable does not render output in Shiny
The code works normally in Rstudio, the code is
library(datatable)
library(shiny)
library(magrittr)
datatable(report) %>% formatStyle('status',target = 'row',
backgroundColor = styleEqual(c("Completed","Over run"),…

yifan yu
- 1
-1
votes
1 answer
how to define nodes and links data frame for sankeyNetwork()
I have a file with export from source country to target country, the value of the trade is in Before_value dimension.
My data is in a data.table with dimensions source and target as character (list of country codes) and beofre_value numeric.
I would…

IRT
- 209
- 2
- 11
-1
votes
1 answer
Shiny app modify nodes and links colors to own data
I am working on a shiny app to display a sankey graph, using sankeyNetwork() from the networkd3 package, based on data input from CSV files (like those included in this post).
I'm having trouble coloring links in the sankey graph by group.
Here is…

Ali Fradi
- 110
- 1
- 10
-1
votes
1 answer
Display Sankey graph in shiny application from a data file imported as csv
I can't display the Sankey Graph on a shiny application through the data uploaded as a CSV using sankeyNetwork() from networkd3. Well, what I wanted to do is to enter a table as a squared matrix with all nodes and it's cases contain the weights!…

Ali Fradi
- 110
- 1
- 10