Open zw231212 opened 7 years ago
@zw231212 , did u get any solution for this problem?
@pallaviMN No,When It is rendering,Just not to choose change the size.
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.
Hope that helps someone else who lands here :-)
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: