GithubHelp home page GithubHelp logo

Comments (3)

madox2 avatar madox2 commented on June 11, 2024

Hi, thanks for your feedback! I am not sure what you are trying to accomplish, could describe/attach an example how you would expect the cloud to look like?

In the sandbox code you shared is cloud displayed on a single line, maybe setting a fixed width would make it look better. (e.g. width: 200)

from react-tagcloud.

sahil-isima avatar sahil-isima commented on June 11, 2024

Thanks for suggestion. I tried and now it looks like :
https://codesandbox.io/s/white-forest-h4zd4?file=/src/App.js

Than i tried same dataset with react-wordcloud and it looks like :
https://codesandbox.io/s/react-wordcloud-responsive-forked-pyjbi?file=/src/index.js
It feels little less of word cloud which normally seems to have more randomness.

I collected another set of images for comparison.

Using react-wordcloud [Looks little better]:
Screenshot 2021-03-31 at 3 15 23 PM

Using react-tagcloud:
Screenshot 2021-03-31 at 3 15 31 PM

Any further suggestion would be much appreciated. I would love to add a PR.

I understand the fact that they are using svg/canvas based positioning while you are using normal html based technique. You seems to have kept it simple which gives you a performance advantage.

from react-tagcloud.

madox2 avatar madox2 commented on June 11, 2024

That's right, this tag cloud component is supposed to be rather simple - html + css is used to position tags. You can provide your own css classes but I am afraid it would be complicated to make it look like your first picture. My suggestion is if react-wordcloud library works better for you then use it. Also if you find a way how to improve on this PRs are very welcome

from react-tagcloud.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.