an R package that provides an interface to D3 visualizations.
Questions tagged [r2d3]
24 questions
1
vote
0 answers
Build a zoomable sunburst within a shiny app
I'm building a dataViz application using shiny, I'm wondergin if there is a possiblity to embeed a zoomable sunburst diagram using package r2d3 or whatever ?
I've been trying to implement the code here…

tunned
- 73
- 1
- 6
1
vote
0 answers
dragging line in linechart: update line to new values?
Yet another d3.js dragging/updating question: I previously got help on creating linecharts where you could drag a dot and the connecting line would adjust. Now I am trying to modify this further so that it is possible to both drag a dot (to move…

t_awkr
- 35
- 6
1
vote
1 answer
Is there any possibility of using imported fonts with r2d3?
I make d3 plots with r2d3 library in R and try to change the font. Unfortunately it is always Arial that renders at the end. Is there any proven way to make it work?
I have tried this in css file connected to js file:
@import…

Featen
- 11
- 1
0
votes
1 answer
r2d3 in R: how to make two charts next to each other?
Using the r2d3 package, I can render a simple d3.js chart in RMarkdown using something like this:
barchart.js:
// !preview r2d3 data=c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20)
var barHeight = Math.floor(height / data.length);
svg
.selectAll("rect")
…

DiamondJoe12
- 1,879
- 7
- 33
- 81
0
votes
0 answers
R Shiny + r2d3 package - d3Output() & other Shiny elements in the same fluidRow
I am working on implementing some D3.js visualizations in a Shiny App through the r2d3 package.
I have some text and a d3Output() in the same fluidRow, when I run the Shiny App, the text & the bar do not get outputted on the same row. See here:…

hzkm
- 1
0
votes
1 answer
How to make charts in Rmarkdown mobile-responsive?
I'm using the r2d3 library in R to insert some d3 charts in an RMarkdown. I'm knitting to HTML. My issue is that I can't seem to figure out how to make the RMarkdown mobile-responsive (I want the charts to resize dynamically).
This is a simple…

DiamondJoe12
- 1,879
- 7
- 33
- 81
0
votes
1 answer
d3 - how to add x-axis labels for only years on a monthly chart?
I'm creating a bar chart in d3 (using r2d3 in R) that shows data per month. I'm wondering how I can format the x-axis so that while there is a bar for each month, the labels only show the year markers (i.e. under each january bar.)
Data look like…

DiamondJoe12
- 1,879
- 7
- 33
- 81
0
votes
1 answer
Reading in external data in d3 JavaScript - an R r2d3 Use Case
EDIT: link for all data/code used in example: https://drive.google.com/open?id=16MpDptwV7m4nOkoT3ImlKffl4rYqc5ms
Hello friends and roasters alike,
I'm about as novice as can be with D3 visualization. My background is all in Plotly and integrated R…

fattmagan
- 51
- 7
0
votes
0 answers
R Shiny + r2d3 package - Not rendering chart
I have been trying to render a chart using r2d3 package and RShiny. The code runs without an error but the chart doesn't get displayed. The D3 visualization works when implemented outside R. Can someone help me get this particular chart to work?
My…

adamcamroon
- 21
- 2