Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Tags disappearing from tagcloud highcharts while using deriveFontSize method #7491
When executing the code again and again in the fiddle some of the tags are disappearing.The code is working correctly when
Live demo with steps to reproduce
@jon-a-nygaard Looks like the playing field is too small. The chart is scaled later, so all fits. The number 256 is hard coded and placed in a not accessible function. I've changed it to
What you are saying @KacperMadej is correct, the playing field is too small in some cases.
I am currently working on a bugfix which implements a smarter algorithm for the playing field - which will take into account the size of the words and decide how big the field needs to be.
I will prioritize this issue so that we can have a fix implemented in the next maintenance release.
added a commit
Mar 2, 2018
Hi @FloPrey, we do not have a specific date for the next release. We try to release a maintenace approximately once a month. So I would say the ETA is within 2-3 weeks.
In the mean time it is possible for you to use a custom build from https://github.highcharts.com/modules/wordcloud.js.
Let me know if there is anything else I can assist with.
referenced this issue
May 23, 2018
For the time being, we are using the previously mentioned solution to solve the problem of missing words. ( http://jsfiddle.net/BlackLabel/0kc6z2h4/2/)
But we find another problem of word occlusion with Chinese words.(Demo: http://jsfiddle.net/0kc6z2h4/29/).
we hope you can provide a solution to the problem of word dropping and word occlusion as soon as possible. Thanks.
Hi @AmmyXu, I will a look into it today and see if I can provide a fix for this.
It is a bit difficult to give an ETA for this since next maintenance release will likely come in next week. If I am able to provide a fix before that, then it will be available in next week, otherwise it will take some longer before it is available.
I've found a solution which seems to work well to solve the problem. Currently working on adding unit-tests for the new code, but it looks promising in regards to have it shipped with the next maintenance release.
Here's the previous demo running with the updated wordcloud: http://jsfiddle.net/jon_a_nygaard/k4p5vo38/
You can load and test the new wordcloud source file from https://github.highcharts.com/master/modules/wordcloud.src.js
EDIT: updated url to source file after the PR has been merged into master