wordcloud2 icon indicating copy to clipboard operation
wordcloud2 copied to clipboard

Can't render in flexdashaboard

Open voxnonecho opened this issue 9 years ago • 7 comments

I believe this is the same issue as experienced here and related to this

voxnonecho avatar Aug 24 '16 14:08 voxnonecho

No problem on my laptop. Try to refresh the page?

version.string R version 3.3.1 (2016-06-21)
flexdashaboard 0.3
wordcloud2 0.2.0

If you want to make multiple word cloud plot, that would be an issue.

badbye avatar Aug 31 '16 15:08 badbye

Yes this will work if you refresh the page but that's because the refresh overwrites the resize() have a look at the issues referenced.

voxnonecho avatar Aug 31 '16 15:08 voxnonecho

In my experience the plot render at the first sight, I do not need to refresh. It will be better if you offer your test code.

badbye avatar Aug 31 '16 18:08 badbye

I'll submit a pull shortly.

timelyportfolio avatar Aug 31 '16 20:08 timelyportfolio

Rstudio viewer have the same problem. I known this issue for a long time. I think it's a bug, need to fix it.

@timelyportfolio your pull cannot fix the problem in viewer as far as I can see.

Lchiffon avatar Sep 01 '16 03:09 Lchiffon

There was one other problem caused by setting the canvas id to canvas. HTML/CSS requires unique selector id. I made the change to append the htmlwidget id to -canvas. Here is a working example. The only issue now is with the tooltip.

    ---
    title: "Untitled"
    output: 
      flexdashboard::flex_dashboard
    ---

    Page1
    ===================

    ```{r}
    library(wordcloud2)
    wordcloud2(demoFreq)
    ```


    Page 2
    ==========

    Column {data-width=350}
    -----------------------------------------------------------

    ### Pentagon

    ```{r}
    wordcloud2(demoFreq, size = 1,shape = 'pentagon')
    ```

    Column {data-width=350}
    ----------------------------------------------------------

    ### Star

    ```{r}
    wordcloud2(demoFreq, size = 1,shape = 'star')
    ```

wordcloud2_flex

timelyportfolio avatar Sep 01 '16 10:09 timelyportfolio

@timelyportfolio trying to run your example, encountered same problem described above

mfumagalli68 avatar Mar 30 '19 19:03 mfumagalli68