How to: |
You can format the background fill and border properties for the chart title, subtitle, and footnote.
"titleobject": { "backgroundColor": "string", "border": { "width": number, "color": "string", "dash": "string", "cornerRadius": {"x": value, "y": value} } }
where:
Can be one of the following:
Is a color specification string or gradient definition that defines the background fill color of the chart title object. The default value is undefined.
Defines the properties of the border around the chart title object.
Defines the width of the border in pixels. The default value is 0 (zero).
Is a color specification string that defines the color of the border around the chart title object. The default value is undefined.
Is a string that defines the dash style of the border around the chart title object. Enter the length of the dash in pixels followed by the length of the space between dashes in pixels. The default value is no dash (" ").
Defines the properties of the corners of the box around the title object.
The cornerRadius property can consist of one value or two values. When there is one value that is zero (0), the corners are square. This is the default corner shape. Rounded corners can be circular or elliptical. The x and y values denote the size of the circle radius or the semi-major and semi-minor axes of the ellipse.
Valid values for x and y are:
The following request generates a title box with red background fill, a blue dashed border, and rounded corners.
GRAPH FILE WF_RETAIL_LITE SUM COGS_US BY PRODUCT_CATEGORY ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET LOOKGRAPH BAR ON GRAPH SET EMBEDHEADING ON ON GRAPH SET STYLE * INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$ TYPE=DATA, COLUMN=PRODUCT_CATEGORY, BUCKET=x-axis, $ TYPE=DATA, COLUMN=COGS_US, BUCKET=y-axis, $ *GRAPH_JS "title": { "visible": true, "text": "Formatted Chart Title Object", "color": "white", "backgroundColor": "red", "border": { "width": 1, "color": "blue", "dash": "4 4", "cornerRadius": {"x": 10, "y":"25%"} } } *END ENDSTYLE END
The output is shown in the following image.
WebFOCUS | |
Feedback |