How to: |
You can use the PAGECOLOR StyleSheet attribute to set the color of the HTML page that surrounds the image directly from the graph procedure.
[TYPE=REPORT,] ... PAGECOLOR={colorcolor|RGB(r g b)|RGB(#hexcolor)},$
where:
Is optional. If omitted, TYPE defaults to REPORT.
Is a supported color. For a list of supported colors see the Creating Reports With WebFOCUS Language manual.
Specifies the font color using a mixture of red, green, and blue.
(r g b) is the desired intensity of red, green, and blue, respectively. The values are on a scale of 0 to 255, where 0 is the least intense and 255 is the most intense. Note that using the three color components in equal intensities results in shades of gray.
Is the hexadecimal value for the color. For example, FF0000 is the hexadecimal value for red. The hexadecimal digits can be in upper or lower case and must be preceded by a pound sign (#).
The following request against the GGSALES data source sets the color of the page to pale green.
GRAPH FILE GGSALES SUM DOLLARS BY PRODUCT ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET STYLE * PAGECOLOR=PALE GREEN,$ END
The resulting chart is surrounded by a pale green HTML page:
WebFOCUS |