How to: |
Begin by creating a procedure that contains a graph. Later, you will add this graph to a frame in the HTML file and drill down to it from a report that you will soon create.
The Add Procedure dialog box opens.
The Procedure viewer window opens.
or
Click the Advanced Graph Tool button on the Procedure Viewer toolbar.
The Advanced Graph Assistant opens.
The following image is the Advanced Graph Assistant which opens at the Chart type tab.
The available line chart types appear.
The Advanced Graph Assistant refreshes showing a sample absolute line chart.
LINEPRICE is added as the field value plotted on the Y-axis.
STORENAME is added as the field value plotted on the X group axis.
Multi-graph creates a separate graph for each value of this field, in this case, the Product Name.
The following image shows the completed Data selection tab with fields selected for the Y axis, X group axis, and Multi-graph areas.
Adding a heading to your graph provides important information to describe the data you want to display. You can add headings and footings for your graph from the Data selection tab of the Advanced Graph Assistant. In this tutorial, you will add a heading with an embedded field to the graph.
The Chart Properties refresh for the Multi-graph field.
<CENTORD.INVSEG.PRODNAME is added to the Heading.
The following image shows how the Header dialog box in the Advanced Graph Assistant should appear.
You can limit the data displayed in a report or graph by adding a filter. Here you will create a statement that limits the data in the graph to a certain product. You will enter this criteria as a parameter, and use the parameter later in the tutorial when you set the drill-down option for the report.
The following image shows the Filter expression builder which appears in the Advanced Graph Assistant.
The Select Value - Variable Editor dialog box opens.
The PNAME parameter is added as the Filter, as shown in the following image.
You will use the PNAME parameter later to set up the drill-down report.
From the Chart editor tab in the Advanced Graph Assistant, you can select properties for your graph. You may adjust the background color, font, templates, and line border colors for your chart, axes, and labels. Here you will add background color to the graph.
The Chart editor shows all of the chart objects and their properties.
The selected color appears and the color attributes are filled in.
The background color is applied to the chart.
The following image is an example of the Quick Chart properties in the Chart editor tab of the Advanced Graph Assistant.
WebFOCUS |