lucaong / jQCloud

jQuery plugin for drawing neat word clouds that actually look like clouds
MIT License
646 stars 293 forks source link

I can't change the width and height to adapt content to the box #63

Open Laev opened 7 years ago

Laev commented 7 years ago

get it ! I changed the jqcloud.js in step to make each text space larger to fit the size of the box

pranshu1995 commented 6 years ago

Hi I have been looking for the same thing. I'd really appreciate if you could help me to do the same. Thanks in advance.

Laev commented 6 years ago

Hello, you can go to change the value of step in ‘ jqcloud.js’ Probably in this position var step = (options.shape === "rectangular") ? 18.0 : 2.0,

pranshu1995 commented 6 years ago

But this takes an integer value. I want to make sure that my jqcloud is taking the size of the whole container , like percentage values. Is that possible?

Laev commented 6 years ago

I can only think of that now. You can test different values again and again until you're satisfied, but sometimes you need to notice that some labels might overflow the box