You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use a select tag to change wordcloud's size(use ajax) ,the former words maybe overlap words now。Then I use $(...).html("") to clear the former wordcloud ,but when the former wordcloud is still rendering , I change the word number, then words could overlap.
Is there a safety param or method to clear the former wordcloud?
I came across this error as well and on inspecting the div, I realised that the words are enclosed in span tags. To clear the div use $('#div-id').find('span').remove(). One thing I also noticed is that sometimes I would execute the clear command while the word rendering is not complete, you can overcome this by setting delayedMode' to false or only calling the re-render if a flag is true and you'd set that flag to true by using the afterWordRender` callback function.
When I use a select tag to change wordcloud's size(use ajax) ,the former words maybe overlap words now。Then I use $(...).html("") to clear the former wordcloud ,but when the former wordcloud is still rendering , I change the word number, then words could overlap.
code eg:
The text was updated successfully, but these errors were encountered: