Tagcloud Chart Properties (tagcloudProperties)

How to:

These properties control the engine used to draw the tagcloud, the font for the labels, and the maximum number of labels.

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

"tagcloudProperties": {
	"engine": "old",
	"maxNumberOfTags": 50,
	"font": "bold 12pt Georgia"
	}

Syntax: How to Set Tagcloud Chart Properties

"tagcloudProperties": {
   "engine": "string",
   "maxNumberOfTags": number,
   "font": "string"  
},

where:

"engine": "string"

Specifies which version of the tagcloud engine to use. Valid values are:

  • "new", which uses the new tagcloud engine.
  • "old", which uses the old tagcloud engine. This is the default value.
"maxNumberOfTags": number

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

"font": "string"

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 uses the new tagcloud engine, 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": {
	"engine": "new",
	"maxNumberOfTags": 5,
	"font": "14pt Algerian"},
*END
ENDSTYLE
END

The output is:

Tagcloud with new engine, a limit of 5 tags, and Algerian font

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

Feedback