Comments (3)
yes, please! This is exactly what I need. I'm using a Shiny app where I want to use the Sunburst created by sund2b()
as a way to select nodes and then get that value back in R. I know I can do this with add_shiny()
on sunburst()
plots. Is there any workaround for sund2b()
currently?
from sunburstr.
I'll circle back to this over the next couple of days. Thanks @stefanavey for the nudge.
from sunburstr.
Tested the example below with code on master branch (0c6274a). Works great for this example!
---
output:
flexdashboard::flex_dashboard
runtime: shiny
---
### Sunburst
```{r}
library(shiny)
library(flexdashboard)
library(sunburstR)
sequences <- read.csv(
system.file("examples/visit-sequences.csv",
package="sunburstR"),
header = FALSE, stringsAsFactors = FALSE)
sund2bOutput("sb")
output$sb <- renderSund2b({
sequences <- sequences[sample(nrow(sequences),100),]
add_shiny(sund2b(sequences))
})
```
### Selection
```{r}
selection <- reactive({
input$sb_click
})
renderText({selection()})
```
I see you added an event for click_center
. How would it work to get the current "parent" of the hierarchy when users click on the center?
from sunburstr.
Related Issues (20)
- sund2b rootLabel malfunction when tooltip option used HOT 2
- no output HOT 4
- sunburst d2b & d3tree treemap fail to render together in shiny HOT 3
- Export sunburst plot as static vector image
- Have the legend open by default HOT 1
- Sizing problems of sund2b output in shiny window or browser with fluidPage HOT 2
- Radial color gradients within arcs HOT 3
- csv_to_hier not working as expected when only one element is spitted out by str_split HOT 18
- Sunburst function examples all fail "Error: Argument 1 must have names" HOT 6
- legend font HOT 1
- crosstalk support HOT 5
- sund2b - display root label on top, centered, and horizontal?
- Solution for manually coloring each leaf? HOT 7
- sunburst example is not working HOT 3
- rootLabel in sund2b is not working HOT 1
- warning when using sunburstOutput with shiny 1.7.4 (latest CRAN) HOT 3
- sunburst plot is rounding when it shouldn't v2.1.8 HOT 3
- custom sund2bBreadcrumb outputs text in all upper case HOT 1
- Modify sund2b breadcrumb size HOT 2
- Error when exporting HTML-plot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunburstr.