/ Published in: JavaScript
The only function the Tag Cloud singleton exposes it the process() function which take 3 arguments.
1. Cloud Data - Required. Needs to have a display value property and a count property. The actual property names are configurable but by default looks for text and value respectivley
2. Render Function - Required. This is the function that will render the cloud items onto the page. This is left up to the developer as this could be dramatically different each time. IT accepts 3 arguments - Display Text, Calculated Size and
3. Optional Configuration - Object that accepts:
* scaler - Overrides the default scaling calculation
* unit - The default size unit eg '%' or 'px'
* textProperty - The property on the object to get the display value
* valueProperty - The property on the object to get the count per item
1. Cloud Data - Required. Needs to have a display value property and a count property. The actual property names are configurable but by default looks for text and value respectivley
2. Render Function - Required. This is the function that will render the cloud items onto the page. This is left up to the developer as this could be dramatically different each time. IT accepts 3 arguments - Display Text, Calculated Size and
3. Optional Configuration - Object that accepts:
* scaler - Overrides the default scaling calculation
* unit - The default size unit eg '%' or 'px'
* textProperty - The property on the object to get the display value
* valueProperty - The property on the object to get the count per item