Comments (13)
Below is a minimal example of the hover bug. The 2 wordclouds in the fluidRow
exhibit the bug (ie the hover info works fine for "my_wc"
but the hover info for "my_wc2"
is displayed on top of "my_wc"
). The 2 wordclouds placed directly into fluidPage
have no issues with the hover information.
library(shiny)
library(wordcloud2)
shinyApp(
ui=shinyUI(fluidPage(
fluidRow(
column(width=6,align="center", wordcloud2Output("my_wc")),
column(width=6,align="center", wordcloud2Output("my_wc2"))
),
wordcloud2Output("my_wc3"),
wordcloud2Output("my_wc4")
)),
server=shinyServer(function(input,output,session){
output$my_wc = renderWordcloud2(wordcloud2(demoFreq))
output$my_wc2 = renderWordcloud2(wordcloud2(demoFreq))
output$my_wc3 = renderWordcloud2(wordcloud2(demoFreq))
output$my_wc4 = renderWordcloud2(wordcloud2(demoFreq))
})
)
from wordcloud2.
ezpz #32
That look alright to you @AdamSpannbauer?
from wordcloud2.
If it does fix your issue I hope that it can serve as more motivation for @Lchiffon to merge the PR. I'm also prevented from using wordcloud2 until a fix for the issue is on CRAN.
from wordcloud2.
Would you happen to have the code used to make this? I see what you're describing in the link, but I'm unable to reproduce it with multiple wordclouds on my own
from wordcloud2.
Can you try with this https://github.com/DataDrivenPolicy/twitteralytics/blob/master/src/twitter_profiles.Rmd
from wordcloud2.
Do you have the other associated files with this Rmd? Some of the required csv's don't seem to be included. Or better yet, would you happen to have a more minimal example?
from wordcloud2.
That seems to be fix the issue on my end. Thanks @AdeelK93
Tested on linux box w/R 3.4.1 & windows box w/R 3.4.2 using Chrome for browser.
from wordcloud2.
I am still confused about this issue, especially in a shiny module.
I create a shiny module to implement wordcloud2, and I call this module itself inside the module to create a modal(pop up window). The hover text does not work(just like http://data.dyumnin.com/analysis/tweeplytics/ashutosh83B.html)
I only give the abstract of my code, since it has 800 lines for one module. You donot want to read it.
namesapce might be the problem for this issue.
I only can use CARN version. So, I do not if #32can solve this problem or not.
##################################################################
\# UI
##################################################################
keywordWordcloudInput <- function( id, title = "Keywords"){
......
......
}
########################################################################
\# Server
#######################################################################
keywordWordcloud <- function( input, output, session,data.keywords){
....
....
#
# Full screen modal
#
modalUI <- function(){
# Use namespace provided by session
ns <- session$ns
# UI content
modalDialog({
.......
# Body
fluidRow(
keywordWordcloudInput(
id = ns("keywordWordclouf_fullscreen")
)#fluidRow
})#modalDialog
}#modalUI
callModule(
keywordWordcloud,
id = "keywordWordclouf_fullscreen",
reactive(data.keywords()),
fullscreen_link = FALSE
)#callModule
}
from wordcloud2.
Do you still have the issue if you install #32 ?
from wordcloud2.
from wordcloud2.
from wordcloud2.
The updated version on CRAN might fix your issue.
For the issue of hover with multiple wordclouds it made the issue worse. The minimal example posted earlier in this thread only plots 1 of the 4 wordclouds with the version 0.2.1 on CRAN.
from wordcloud2.
@wangxuesong29 Try using this version of wordcloud2: https://github.com/AdeelK93/wordcloud2
The CRAN version does not include #32
from wordcloud2.
Related Issues (20)
- Do a CRAN release
- letterCloud HOT 2
- shiny only one plot is showing HOT 2
- rmarkdown html multiple wordclouds HOT 3
- i can not download wordcloud2 HOT 1
- Custom Hover Text HOT 1
- Wordcloud failing in Shiny
- Wordcloud failing in Rmarkdown tabsets HOT 10
- Reactive word cloud failing in modularized shiny app
- Seg quick mode
- Fig Mask and lettercloud are not working with package installed from github HOT 1
- java script error when using flexdashboard + runtime shiny
- shape argument doesn't work HOT 3
- Hover and click HOT 1
- Release version of wordcloud2 HOT 2
- Click Event and Mouse pointer
- #Shiny wordcloud2 Error: Argument "words" is missing with no default
- shinycssloaders::withSpinner() does not work with wordcloud2Output()
- "minSize argument = A character string of the subtitle", really ?
- Not showing words when using an image with figpath HOT 2
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 wordcloud2.