chrisrzhou / react-wordcloud

☁️ Simple React + D3 wordcloud component with powerful features.
https://react-wordcloud.netlify.app
MIT License
210 stars 138 forks source link

text attribute fill-opacity randomly added and set to 0 #97

Open tokich6 opened 2 years ago

tokich6 commented 2 years ago

Hello,

I'm experiencing an issue where a fill-opacity: 0 text attribute gets added randomly on component re-render (not always). In some cases it affects all words in the cloud, others just some of the words (so in some cases no words show in the cloud at all) Can you please point me in the direction of what could possibly be causing this?

const options = {
    scale: 'log',
    fontSizes: [18, 36],
    fontFamily: 'Open Sans, sans-serif',
    rotations: 1,
    padding: 2,
    rotationAngles: [0, 0],
    enableTooltip: false,
  },
Shourya-BrainAlive commented 4 months ago

Hello,

I am also experiencing this issue. If you have found a solution, could you please share how to resolve it?