Lchiffon / wordcloud2

R interface to wordcloud for data visualization.
397 stars 113 forks source link

Hover and click #71

Closed drghirlanda closed 3 years ago

drghirlanda commented 3 years ago

Hi, I am trying to disable the hover functionality (I don't want the box and value to be shown when hovering on a word), but if I try this then the clicking on the wordcloud does not work anymore:

...
hoverFunction=htmlwidgets::JS("function(e){return}")
...

I am n R shiny. Without the hoverFunction line, click detection is fine. Is there another way I should be turning off the hover function? Thanks!

drghirlanda commented 3 years ago

I solved this with CSS as follows:

.wcLabel {
    border: 0px !important;
    box-shadow: none !important;
    opacity: 0 !important;
}