Step 2b. Show the report as a graph
Report Builder picks the graph type based on your selections so far. Experiment to find the best graph type for your data set. Typically, line graphs convey trend information effectively, but you might find that a bar (stacked or grouped) works better with your data.
Procedure
Before you can preview a graph, you must select a value for the unit of measure. You can also select the dimension.
- Enter the chart title.
- From the Graph type menu, select one of the following chart type
for your report.
- Bar chart
- Line chart
-
Select the category to show on the X-axis (horizontal), and enter a label name.
Typically, you select what you want to measure.
- If you use a date attribute in the Group data by attribute field, click
Date scale, and choose what date range to show in the report: days, weeks,
months, or years.Note: Drill downs on charts on the Run report page are not allowed when you group data by a calculated value attribute.
- To show data gaps, select the Fill in gaps with zero value check box.
For more information, watch the following video:
- If you use a date attribute in the Group data by attribute field, click
Date scale, and choose what date range to show in the report: days, weeks,
months, or years.
-
Select the quantities or units to show on the Y-axis (vertical).
- Count all the results for the selected attribute, or select a unit to count. To compare different aspects of the value that you're measuring, select a dimension.
- If you use numeric values, add lines or bar segments.
Note: Graphs are displayed for both positive and negative values. Although the labels display negative values in pie charts, negative values are calculated and plotted as absolute values. -
If your graph has some values in a low range, and other values in a high range, one of these
ranges might be difficult to see. In this case, you can magnify the values in this range to see the
trend and variation of the graph by adding another axis. If you are reporting on defect severity, and the number of Normal, Major, and Minor defects are in a large range (50-100) and the Blocker and Critical defects are in a smaller range (0-5).
- To magnify the values for the smaller range, in the Y-Axis column, change Blocker and Critical from Y Axis 1 to Y Axis 2.
- The values for Blocker and Critical are drawn with another scale. Another Y axis is added with the same color as the label for these smaller values. The legend also shows the same color for labels and (Y axis 2) is added to the legend.
- You can also add an axis for horizontal graphs and line graphs.
Note: The Data values for a stacked bar with 4 or more digits are visible when a user hovers over the stacked bar. -
Adjust what data points to show in the graph.
- To show more data, click Attribute.
- To add calculations such as averages, sums, or counts, click Calculated
Value.
- Select the artifact type, calculation, and the attribute for your calculation.
- To add other calculated values, click Add. Otherwise, click Add and Close.
- To show the data in the form that you need, you can use attributes, and functions to build custom expressions.
-
Adjust the graph.
- Change the colors of the lines or bars on the graph to make the categories more visible, or to comply with conventions in your organization.
- Combine line and bar chart segments to show the dimensions in your report. For each segment, specify the graph type: bar, line, or dashed line.
- In time series reports, you can add goal lines to compare the current state or values with target values. When you use the Add lines or bar segments for numeric measures option, click Goal line. Choose a bar, a solid line, or a dashed line. Use an angled, curved, or an S-curve trajectory for the goal line. You can add several goal lines to your chart.
- In time series reports, you can also add date lines to mark specific milestones. When you use the Add lines or bar segments for numeric measures option, click Date line and specify the date. For each date line, select the graph type for your date line: the default, line, or dashed line.
- To show values, totals, or grids on the chart, click Graph type, and
select the appropriate checkbox.Note: The Show grids checkbox is only applicable for line and bar graphs.
- When you finish arranging your report, click Continue.