Comments (4)
So glad you are trying this. I think the problem is that I am using the development branch of data.tree
. If possible, could you try?
devtools::install_github("gluc/data.tree")
If that fixes the problem, I will add this to the examples.
Thanks again. I would love any additional feedback, ideas, use cases, criticism. It is a work in progress.
from d3treer.
I installed the dev version as you suggested, unfortunately it still doesn't work. It did change something though. Before the code just wouldn't render. Now, the code renders, however, immediately after rendering the widget disappears. I also tested it in a shiny app, in that case nothing renders.
With respect to some additional feedback, first off great to see the commitment! I read it every week! It would be helpful to add a link to you github repos as cloning those is often fast and convenient. (I understand you are working on some more general repo for widgets?)
By the way, I also field tested your sortableR widget, which I also think has great potential. Two questions:
- If you dynamically create the content of the lists via renderUI the widget doesn't work properly (I think). For instance, let's modify your code and put a uiOutput call VariableSelector into it:
For ui.r we have:
fluidRow(
column(width = 4,
tags$div(class="panel panel-default",
tags$div(class="panel-heading","Variables"),
tags$div(class="panel-body",id = "sort1",
uiOutput("VariableSelector")
)
)
),
column(width = 4,
tags$div(class="panel panel-default",
tags$div(class="panel-heading",tags$span(class = "glyphicon glyphicon-stats"),"Analyze as x (drag here)"),
tags$div(class="panel-body",id = "sort2")
)
),
column(width = 4,
tags$div(class="panel panel-default",
tags$div(class="panel-heading",tags$span(class = "glyphicon glyphicon-stats"),"Analyze as y (drag here)"),
tags$div(class="panel-body",id = "sort3")
)
)
),
sortableR( "sort1", options = list( group = "sortGroup1")),
sortableR( "sort2", options = list( group = "sortGroup1")),
sortableR( "sort3", options = list( group = "sortGroup1"))
then for server.r we have
output$VariableSelector <- renderUI({
lapply(colnames(mtcars),function(co){
tag("p",list(class = class(mtcars[,co]),tags$span(class = "glyphicon glyphicon-move"),tags$strong(co)))
})
})
This code works, however, the items can no longer be added individually. It's either the whole list or nothing.
- I also was a bit confused how to get access to the indivual list items in server.r for sort1,sort2 and sort3.
from d3treer.
Looks like your issue is same as mtennekes/treemap#17. I believe it should now be fixed. Please let me know.
from d3treer.
@FrissAnalytics the commmit auto closed the issue. Feel free to reopen if still a problem.
from d3treer.
Related Issues (20)
- Can Treemap options be maintained after rendering d3tree3 HOT 6
- height and width setting in d3tree or d3tree2 not working in shiny HOT 2
- cant install the library HOT 3
- package d3treeR not available HOT 10
- Treemap as input for reactive variable/function? HOT 4
- Interactive treemaps in loop (d3treeR) HOT 3
- Treemap isnt displayed HOT 1
- update to d3v5 HOT 1
- d3tree doesn't render HOT 5
- CRAN Any plan? HOT 17
- New Line in Group Name HOT 1
- Disable top right number and grey bar HOT 4
- tooltip help HOT 1
- d3TreeR not working in R version 3.5.3 HOT 2
- d3tree2 is not collapsing back when rootname is clicked HOT 3
- conflict between d3treeR and forceNetwork
- Can clickActions be set to follow a URL?
- xml error?
- R v4.0 HOT 1
- Cannot download this awesome package for R version 4.1 HOT 3
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 d3treer.