jQCloud | jQuery plugin for drawing neat word clouds
kandi X-RAY | jQCloud Summary
kandi X-RAY | jQCloud Summary
jQCloud is a jQuery plugin that builds neat and pure HTML + CSS word clouds and tag clouds that are actually shaped like a cloud (otherwise, why would we call them 'word clouds'?). You can see a demo here:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jQCloud
jQCloud Key Features
jQCloud Examples and Code Snippets
Community Discussions
Trending Discussions on jQCloud
QUESTION
As per jQCloud's documentation, fontsize can be set in three ways.
- array
- object
- function
I want to know how to set fontsize using a function. I'm new to jQCloud and cannot find any example with that function approach.
Actually I want font size of words to be responsive. By default the font size is fixed based on 10 steps on all resolutions or windows-sizes. I wonder if this functional approach could be helpful to achieve responsiveness.
Any hint or solution will be highly appreciated.
...ANSWER
Answered 2017-Oct-24 at 16:19From the documentation it states:
A function taking the container width, the container height and a step number as parameters and returning a valid CSS font size
Therefore you can provide a function which accepts those parameters and returns the font size to be used. For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jQCloud
Make sure to import jQuery in your project.
Download the jQCloud files. Place jqcloud-1.0.4.js (or the minified version jqcloud-1.0.4.min.js) and jqcloud.css somewhere in your project and import both of them in your HTML code.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page