Skip to main content

Customizing Appearance of Graphical Report Output

The default graphical configuration is managed by templates, and is the same as the graphical configuration for the reports run through the GUI. You can use the command-line options to request a specific predefined template. See Command-Line Reference.

There are several options that allow you to customize the text style and colors used in graphical report output. Colors should be specified in hexadecimal RGB format (for example, 00AAFF). Do not use plain words; however, the colors from SAMreport are accepted. SAMreport colors are mapped as shown in the following table.

SAMreport ColorHexadecimal Format
black000000
redFE0000
green008200
blue0000FE
cyan00FEFE
magentaFE00FE
yellowFEFE00
whiteFFFFFF

The default title of a graphical report depends on the type of report. You can set the title of a graph, but note that all individual output graphs in a set will have the same title. If you want to set the title to something other than the default report title, type:

  -title title 

Background color of the graphical report can be set by typing:

  -bgcolor color 

Several font characteristics can be set for all text in a graphical report. Some options require that additional options are set.

OptionDescriptionConstraints
–fontface <fontname>Sets the name of the font to use for text in the report. Specify one of the fonts accessible by the Java VM.If you set one of these options, you must also set the other.
–fontsize <points> <span class="File_Name"> </span>Sets the size of the font in points for text in the report.
–fontboldMake text bold in the reportIf set, must also set -fontface, \-fontsize\.
-fontitalicMake text italicized in the report.If set, must also set \-fontface, \-fontsize\.

The color of all text in a graphical report can be set by typing:

  -textcolor color 

The color(s) of data elements are specified in an order dependent on the type of report. In a Usage Over Time or a High Water Mark report, the first color is used for the line indicating usage; the second color is used for the line indicating available licenses. In a barchart, the specified color(s) are assigned to bars in the order they appear in the report. One or more colors are specified by typing:

 -datacolor color[,color]* 

The style of data lines can be set for one or both data lines in a graphical report. The first style is used for the line indicating usage; the second style is used for the line indicating available licenses.

  -datastyle n[,n]* 
-1Solid line. If datastyle is not set at all, the lines will be solid.
0
1
2

Style of Data Lines

The width of all lines in the graph (data lines and axes) can be set by typing:

  -linewidth pixels