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

textAttributes.fill is overwritten when wordcloud re-renders

queengooborg opened this issue · comments

When the wordcloud re-renders, due to screen change or otherwise, it appears that the fill attribute for the textAttributes is overwritten by the colors specified by the colors attribute (or the random colors it defaults to). This is causing a huge issue in the functionality of a new feature on my client's website.

This issue can be seen on the demo page (simply resize the browser to see): https://react-wordcloud.netlify.app/usage/options#attributes

Definitely a bug and can look into it!