chrisrzhou / react-wordcloud

☁️ Simple React + D3 wordcloud component with powerful features.

Home Page:https://react-wordcloud.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

text attribute fill-opacity randomly added and set to 0

tokich6 opened this issue · comments

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,
  },