The Setup tab allows you to configure the data that will appear in the graph and the type of graph that will be displayed. The tab contains the following:

Filter: This button displays the Filter dialog box, which allows you to restrict the data used in the graph before it is retrieved from the database.
As of Date: This field allows you to use data from a particular time in the past (rather than current data) for the report. Note: This will only work if the tables on which the report is based are configured to support temporality.
Graph type set-up table: The table shown in the window shows the type of graph to be created as well as columns to select the data to be shown in the graph. One of five types of graphs may be selected:

Depending on the type of graph selected, different columns will appear to configure the data for the graph. Use the links above for more information on each graph type.

Note: Missing values in the Category field and/or the Colored By field are treated as an extra "N/A" group. However, if values are missing from the Values field or the Cond/Distr/Wgt By field, then the record is not used for the graph and its results.

General Graph Type

The General type of graph plots any X-axis variable against a user-defined summarization of a Y-axis value. This graph differs from the other graph types in that you can define how the Y axis is summarized. The available aggregate functions include:

When you select General from the drop-down list in the Graph Type column, the graph set-up table displays the following columns to configure the General graph type:

Conditional Graph Type

The Conditional type of graph summarizes values only if the values pass a specified criterion. This type of graph first retrieves all rows from the database that pass the filter. Then, the application groups the data to create "cells" by category (and, optionally, by a secondary, "by color" category). Finally, for each cell, it calculates and reports the percentage of the measurement units that pass the conditional criteria out of all measurements within that cell.
A Conditional graph retrieves all the rows in the database that pass through the filter, but then calculates a percentage that meet the conditional criterion established by the user. A subtle but significant difference exists between a filter and the conditional criterion: a Conditional graph always reports the percentage of measurement units that pass the conditional criteria compared to the total measurement units that pass through any defined filters.

For conditional percentage calculations:

Example

To illustrate this important point, suppose we were to create two conditional graphs on a network with 1000 miles of pavement and we were interested in knowing the percentage of the network that was in "Fair or Better" condition. The conditional criterion defined for these graphs is the number of roadbed miles in fair or better condition as defined by the user (for example, Ride Quality Index is greater than 2.5).
For this example, suppose also that for the selected year five hundred miles were in fair or better condition (50% of the total network mileage). If we set-up a filter using the Fair or Better criterion, then the graph would only retrieve rows in fair or better condition. Thus the graph would report that 100% of the network is in fair or better condition (remember we retrieved only fair or better roads by defining the filter). This result, although correct, is clearly misleading and not what was intended.
On the other hand, if we let the full network pass through the filter and then summed the mileage actually in fair or better condition (500 miles), the graph would correctly report that only 50% of the network is in fair or better condition. Thus it pays to be careful when defining filters when creating conditional distribution graphs.

Columns to Configure a Conditional Graph

When you select Conditional from the drop-down list in the Graph Type column, the graph set-up table displays the following columns to configure the Conditional graph type:

< The conditional column must be less than the specified value to pass the condition.

<= The conditional column must be less than or equal to the specified value to pass the condition.

= The conditional column must be equal to the specified value to pass the condition.

> The conditional column must be greater than the specified value to pass the condition.

>= The conditional column must be greater than or equal to the specified value to pass the condition.

Note: Missing values in the conditional column always fail the condition.

Distribution Graph Type

The Distribution type of graph shows summarized values of one variable plotted against another variable. It is usually displayed as a bar chart. A simple example is the number of roadbed miles within each maintenance district on a highway network.
When you select Distribution from the drop-down list in the Graph Type column, the graph set-up table displays the following columns to configure the Distribution graph type:

Example Results

Shown below are two sets of tables. The first shows original data, while the second shows the graph results based upon this data for all combinations of graph attributes.
Original data, showing what values should appear for each category and "colored by" combination, is shown in the table below.

The following table shows the graph values per administrative unit (category) and road class ("colored by"). It shows what values would appear for each "colored by," accumulation, and "present by" selection. Note that these combinations result in nine different graphs.

Cumulative Graph Type

Cumulative graphs are used for building frequency or probability density, or cumulative probability density functions, for selected variables. For example, the distribution of alligator cracking is best represented as a histogram graph that displays the distribution of the alligator Index variable for one or more years.

Note: "Missing" (that is, null) distributed data is excluded from Cumulative graph types.

When you select Cumulative from the drop-down list in the Graph Type column, the graph set-up table displays the following columns to configure the Cumulative graph type:

Weighted Avg. Graph Type

The Weighted Average type of graph plots any X-axis variable against a weighted average of a Y-axis value. This graph is similar to the General type of graph, with two exceptions: (1) the aggregation function is always "average"; and (2) it is a weighted average, not a simple average, and so needs a "weighting" variable.
When you select Weighted Avg. from the drop-down list in the Graph Type column, the graph set-up table displays the following columns to configure the Weighted Average graph type: