-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
visNetwork and timevis package can not be useed together in Shiny #90
Comments
@bthieurmel the problem was that I was only including the vis-timeline.js file and you were only including the vis-network.js file. I fixed this on my end, so now timevis includes the entire I'd appreciate if you fixed it on your end as well |
Done. |
I re-open this problem: "Hello Dean, I saw that there are some issues between timevis and visNetwork since they both use vis.js. However, I thought that it was fixed last year in 2016. I still have problems when I run a code like that :
In this code, the timeline does not start at the current time (now()) nor ends 2 hours later. However, if you comment the visNetwork elements in UI and server code, the timeline renders well. How can I fix that? Cheers |
I'm currently traveling and don't have much time to debug stuff like this, so I can't promise I'll take a look. But can you please post a minimal example, with as least code as possible? Having so many packages in the mix increases the points of possible problems, we can more efficiently investigate the issue when the code only involves the two packages |
Here is what is essential. I commented the network part to show that it works as expected. But if you uncomment :)
|
Hi, it's seems ok for me.
|
But, we can observe that :
|
I am trying to include the timevis package and the visnetwork package into my Shiny app. but i find it did not work when i put them together.and there are no errors in R. could you help me see what is the reason? appreciate for your any help.
here is the code below,
library(timevis)
library(shiny)
library(visNetwork)
nodes <- data.frame(id = 1:3)
edges <- data.frame(from = c(1,2), to = c(1,3))
dataBasic <- data.frame(
id = 1:4,
content = c("Item one", "Item two" ,"Ranged item", "Item four"),
start = c("2016-01-10", "2016-01-11", "2016-01-20", "2016-02-14"),
end = c(NA, NA, "2016-02-04", NA)
)
ui<-fluidPage(
timevisOutput('timeline'),
visNetworkOutput('snagraph')
)
server<-function(input,output)({
output$snagraph<-renderVisNetwork(visNetwork(nodes,edges))
output$timeline<-renderTimevis(timevis(dataBasic))
}
)
shinyApp(ui,server)
The text was updated successfully, but these errors were encountered: