WebFOCUS Online Help > Managed Reporting Developer > Creating Graphs With Advanced Graph Assistant > Applying Custom Styling to a Graph
In this section: |
While using Advanced Graph Assistant, you can customize your graph using the Chart Properties form, the Field Properties form, and the various chart editing forms of the Chart Editor. The customizations you can apply to your graph include customizing fonts, colors, scales, data labels, titles, frame attributes, 3D effects, graph size, axis placement (graph orientation), text display, legend location, template selection and more. For more information about using the Chart Editor, see Modifying Graph Properties With Chart Editing Forms.
Advanced Graph Assistant offers a variety of predefined color scheme templates you can select from either the Chart Type editing form when selecting a chart type, or the Quick Chart editing form when using the Chart Editor. You can select to apply any of the available color scheme templates to change the appearance of your graph. A complete list of available color scheme templates is shown in the following table:
Available Color Scheme Templates | |
---|---|
Southwestern |
Pastels |
Extruded Pastels |
Cylinders on gray |
Plum on white |
Greys |
Fade to gray |
True Colors |
Color to white |
Red Accent |
Beveled on tan |
Default |
The chart type editing form for the selected chart type appears below the graph preview area.
A drop-down arrow appears at the far right edge of the row in the Value column.
The color scheme template you selected appears in the graph preview area.
The Quick chart editing form appears below the graph preview area.
A drop-down arrow appears at the far right edge of the row in the Value column.
The color scheme template you selected appears in the graph preview area.
Custom graph templates are useful when you want complete control over the appearance of a chart. When creating charts, you can utilize custom templates by creating and adding them to the built-in templates that are standard in Advanced Graph Assistant. Custom graph templates can be created, saved, and stored for future use by doing the following steps:
Note: If you have in-depth knowledge of Graph API calls, you can manual code a custom template in a text file.
drive:\ibi\WebFOCUS76\ibi_html\javaassist\images\tdg\template
Note:
drive:\ibi\srv76\home\graph
You can change the fonts for data, data labels, series data, X- and Y-axis labels, legend text, titles (title, subtitle, footnote), and annotations. Use the appropriate chart editing form in the Chart editor tab to customize the fonts used in your graph. For a list of all chart editing forms, see Chart Editor Folders and Forms. Depending on the chart editing form, your options for customizing fonts include all or a subset of the following:
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired font name from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired font style from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired type of text justification from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired degree of text rotation from the list.
In the Labels chart editing form, click the Value column in the row that displays Automatic resizing in the Property column. A drop-down arrow appears at the right edge of the row in the Value column. Click the down arrow, then select No.
Note: There are additional font attributes you can try that are not listed above, for example, underline style.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired font name from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired font style from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired type of text justification from the list.
Click the drop-down arrow that appears at the far right edge of the row in the Value column, then select the desired degree of text rotation from the list.
In the Title, Subtitle, or Footnote chart editing form, click the Value column in the row that displays Auto resize in the Property column. A drop-down arrow appears at the far right edge of the row in the Value column.
Click the down-arrow to open the drop-down list, then select No.
Note: There are additional font attributes you can experiment with that are not listed above, for example, underline style.
The following font types are available in Advanced Graph Assistant.
Font Type Names | |||
---|---|---|---|
Arial |
Arial Black |
Arial Narrow |
Book Antigua |
Bookman Old Style |
Bookshelf symbol 7 |
Century Gothic |
Comic Sans MS |
Courier New |
Default |
Dialog |
Dialog Input |
Garamond |
Georgia |
Heattenschweiler |
Impact |
Lucida Bright |
Lucida Console |
Lucida Handwriting |
Lucida Sans |
Lucida Sans Typewriter |
Lucida Sans Unicode |
Mariett |
Microsoft Sans Serif |
Monospaced |
Monotype Corsiva |
MS Outlook |
MS Reference Sans Serif |
MS Reference Specialty |
Palatino Linotype |
Sans serif |
Serif |
Symbol |
Tahoma |
Times New Roman |
Trebuchet MS |
Verdana |
Webdings |
Wingdings |
Wingdings 2 |
Wingdings 3 |
ZWAdobeF |
|
|
You can apply line stroke styles to line objects in the Chart Editor of Advanced Graph Assistant. Line objects make up the various lines and grids of a graph, which include, but are not limited to, X-axis Major and Minor gridlines, Y-axis Major and Minor gridlines, and Y-axis Reference lines. Line stroke styles can be used to change the appearance of your graph, and are supported in PNG, JPEG, and GIF formats.
The available line stroke style options, shown in the following image, are None, Solid, Dots, Many Dots, Dashed, Dashed Dots, Long Dash, and Mixed Dashes.
The selected chart editing form appears below the graph preview area.
The width (or horizontal axis) of each graph, which includes any surrounding text, is automatically set to 770 pixels. When setting the graph width, you should allow for the inclusion of any text required for the vertical axis and its labels along the left margin.
The height (or vertical axis) of your graph is automatically set to 405 pixels.
The vertical axis is automatically set to cover the total range of plotted values. The height of the axis is set as high as possible (taking into consideration the presence of any headings or footings and the need to provide suitably rounded vertical class markers). The range is divided into intervals called "classes." The scale is normalized to provide class values rounded to the appropriate multiples and powers of 10 for the intervals plotted on the axis.
or
Click anywhere on the chart displayed in the graph preview area.
The Chart Properties form is displayed below the graph preview area.
The changes are reflected in the graph preview area.
You can hide the display of axis labels and lines in a graph. This option is useful for customizing the display of data in a graph and lets you temporarily remove a data label or axis line while retaining the rest of the original graph properties.
The General Y-axis chart editing form appears below the graph preview area.
A drop-down arrow appears at the far right edge of the row in the Value column.
The selected X-axis chart editing form appears below the graph preview area.
A drop-down arrow appears at the far right edge of the row in the Value column.
When creating pie charts, you have options for displaying the labels used to represent the individual pie slices of your chart. You can select these display options in the Chart Editor of Advanced Graph Assistant to better convey the meaning of the data in your pie chart.
As shown in the following image, you can select from: Absolute Value; Percent Value; Name; Name and Percent Value; Name and Absolute Value; Absolute and Percent Value; or Name, Absolute, and Percent Value.
The Data labels chart editing form appears below the graph preview area.
A drop-down arrow appears at the far right edge of the row in the Value column.
Note: If Show pie labels is set to Hide, no labels are displayed for the pie slices.
A drop-down arrow appears at the far right edge of the row in the Value column.
The option you selected appears in the graph preview area.
For example, in the following image, Absolute and Percent value is the selected Pie label display option, and Outside Slice is the selected Show pie labels option:
WebFOCUS |