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" }
"tagcloudProperties": { "engine": "string", "maxNumberOfTags": number, "font": "string" },
where:
Specifies which version of the tagcloud engine to use. Valid values are:
Is the maximum number of labels to show in a tagcloud chart. The default value is 50.
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.
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:
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 |