Coder Social home page Coder Social logo

Comments (13)

AdamSpannbauer avatar AdamSpannbauer commented on July 26, 2024 1

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.

AdeelK93 avatar AdeelK93 commented on July 26, 2024 1

ezpz #32

That look alright to you @AdamSpannbauer?

from wordcloud2.

AdamSpannbauer avatar AdamSpannbauer commented on July 26, 2024 1

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.

AdeelK93 avatar AdeelK93 commented on July 26, 2024

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.

jahagirdar avatar jahagirdar commented on July 26, 2024

Can you try with this https://github.com/DataDrivenPolicy/twitteralytics/blob/master/src/twitter_profiles.Rmd

from wordcloud2.

AdeelK93 avatar AdeelK93 commented on July 26, 2024

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.

AdamSpannbauer avatar AdamSpannbauer commented on July 26, 2024

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.

duocang avatar duocang commented on July 26, 2024

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.

AdamSpannbauer avatar AdamSpannbauer commented on July 26, 2024

Do you still have the issue if you install #32 ?

from wordcloud2.

duocang avatar duocang commented on July 26, 2024

from wordcloud2.

duocang avatar duocang commented on July 26, 2024

from wordcloud2.

AdamSpannbauer avatar AdamSpannbauer commented on July 26, 2024

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.

AdeelK93 avatar AdeelK93 commented on July 26, 2024

@wangxuesong29 Try using this version of wordcloud2: https://github.com/AdeelK93/wordcloud2

The CRAN version does not include #32

from wordcloud2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.