Comments (3)
This is currently expected, because the layout attempts to place words within a fixed-size rectangle. If the words are too large and they cannot be placed without overlapping, then they are dropped.
The solution is to figure out the right size for your words. If you want to show all 1,100 words, then perhaps your size needs to be much smaller.
It would be nice to automatically figure out the right size for words, perhaps using a heuristic based on the value distribution, so I’ll leave this issue open as a reminder to look into this.
from d3-cloud.
Hiya. Thank you for taking the time to response.
I found that using the linear scale solves the problem :)
Just to clarify for anyone else viewing this, I have about 7500 words that I was pushing into the script, showing a maximum of 250 words.
With the log n scale, the cloud would only generate about 60 words into the cloud.
Using the √n (sqrt) scale, I'd get about 160 words.
And finally, using the n (linear) scale, I'd get all 250 words.
I hope that helps someone
from d3-cloud.
I wonder if anyone has had any further thoughts on this? It wouldn't be much of a problem if it only showed the top so many words, but as it stands it is possible for some of the most significant words to be dropped, and this results in some odd-looking clouds.
from d3-cloud.
Related Issues (20)
- D3 word cloud cannot show all words HOT 4
- Delay in loading react-wordcloud with fontSizes in options prop HOT 2
- feature: blink words to load more? HOT 2
- Generate the same word cloud for the same data HOT 1
- Allow CSV import HOT 2
- how to use it? HOT 4
- Link / Action for each word HOT 3
- Lot of space left unused HOT 2
- Not working anymore with recent versions of d3! HOT 1
- Need some instruction on how to get started HOT 1
- is there any way to port wordcloud svg to canvas. HOT 1
- Unreadable under D3 V7 HOT 4
- bug: fontSize not working on firefox
- Using d3 from Latex HOT 2
- How to fit chart to size given HOT 1
- Migrate to esm
- Allow changing the dominant baseline HOT 1
- Setting custom style on cloud throws an exception HOT 4
- How to use in a React environment?
- Is it possible to support 'multi line' words
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3-cloud.