Tagcloud Chart Properties (tagloudProperties)

How to:

These properties control the font and the maximum number of labels to draw in a tagcloud chart.

The following shows the properties and default values available for tagclouds:

tagcloudProperties: {
   maxNumberOfTags: 50,
   font: 'bold 12pt Georgia'  
},

Top of page

x
Syntax: How to Set Tagcloud Chart Properties
tagcloudProperties: {
   maxNumberOfTags: number,
   font: 'fstring'  
},

where:

number

Is the maximum number of labels to show in a tagcloud chart. The default value is 50.

'fstring'

Is a string that defines the type face of labels. The default value is: 'bold 12pt Georgia'.

Note: Although a font specification string may include a point size, this value is not used. The data used to draw the tagcloud chart determines the size of the labels.



Example: Setting Tagcloud Chart Properties

The following request generates a tagcloud with the default properties:

GRAPH FILE WF_RETAIL_LITE
SUM DAYSDELAYED
BY PRODUCT_CATEGORY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH TAGCLOUD
END

The output is:

The following version of the request limits the number of tags to 5 and sets the font to 14pt Algerian:

GRAPH FILE WF_RETAIL_LITE
SUM DAYSDELAYED
BY PRODUCT_CATEGORY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH TAGCLOUD
ON GRAPH SET STYLE *
*GRAPH_JS
 tagcloudProperties: {maxNumberOfTags: 5,font: '14pt Algerian'},
*END
ENDSTYLE
END

The output is:

Note: Although a font specification string may include a point size, this value is not used. The data used to draw the tagcloud chart determines the size of the labels.


WebFOCUS