Changes

Jump to: navigation, search

Summarize iReport Template Data

4,872 bytes removed, 17:20, 20 September 2013
no edit summary
<ol start="20">
<li>Click the [[Image:iRepCompile.png]] button to compile the report.</li>
<li>Click the [[Image:iRepRun.png]] button to execute the report.</li>
</ol>
 
===Stacked Bar Chart===__NOEDITSECTION__
A stacked bar chart is similar to a grouped bar in that it allows you to represent two different fields on the chart. The key difference is that the stacked bar chart layers the values of the series expression (the field represented in the legend) allowing you to easily compare the categories to one another.
 
[[Image:iRep39.png|center|500px|''Figure 39. Stacked bar chart'']]
<div align="center">
''Figure 39. Stacked bar chart''
</div>
 
To add a grouped bar chart to the report:
<ol>
<li>Create a report which groups the results by the fields that will be represented on the horizontal axis of the chart.</li>
</ol>
 
{{note|For a stacked bar chart, you will need to specify at least two groupings.}}
 
<ol start="2">
<li>Add any variables that you may need to calculate the value that you would like to show on the chart.</li>
<li>If you would like to display the calculated variable for each group, you should add the footer for the field on which the results will be grouped. This footer will be used to display the variable for the group that will subsequently be used in the chart. To add a group footer:</li>
<ol type="a">
<li>From the '''View''' menu, select '''Bands'''.</li>
:The <FileName> bands… window displays.
<li>Select <''GroupFieldName''>Footer from the left pane where ''GroupFieldName'' is the name of the field on which the results will be grouped. For example, if you are creating a report on land and group the results by the priority, the name of the band would be ''priorityFooter''.</li>
<li>In the right pane, enter a numeric value in the '''Band Height''' field. You may adjust the height of the summary</li>
<li>Click the '''Apply''' button.</li>
</ol>
<li>Add a summary section to the report.</li>
<li>Click the [[Image:iRepBarChart.png]] icon.</li>
<li>In the summary section of the report, hold down the mouse button and drag the cursor to form the rectangle which will contain the chart.</li>
:A window of the various chart options displays.
<li>Select one of the stacked bar chart options.</li>
</ol>
 
[[Image:iRep40.png|center|500px|''Figure 40. Stacked bar chart options'']]
<div align="center">
''Figure 40. Stacked bar chart options''
</div>
 
<ol start="8">
<li>Click the '''OK''' button.</li>
<li>Right-click anywhere on the chart.</li>
<li>Select the '''Chart Properties''' option.</li>
<li>From the Chart Properties window, select the Chart Data tab.</li>
<li>From the Chart Data tab, select the Details tab.</li.
<li>Click the '''Add''' button.</li>
:The Chart Properties window displays. By default, the Data tab should be selected.
<li>For a stacked bar chart, the series expression contains the fields whose distinct value.</li>
<li>For a grouped bar chart, the series expression contains the field whose distinct values you would like to show via different colours on the bar chart. To enter the series expression:</li>
<ol type="a">
<li>Click the [[Image:iRepEditor.png]] icon that is displayed beside the Key Expression field.
:The Expression editor window displays.</li>
<li>From the bottom pane, double-click the name of the field that contains the data that you would like to include in the chart.</li>
:The expression to represent the field displays in the top pane.
<li>Click the '''Apply''' button.</li>
</ol>
<li>The Category Expression is the field by which the series expression is grouped together. To enter the category expression:</li>
<ol type="a">
<li>Click the [[Image:iRepEditor.png]] icon that is displayed beside the Category expression field.</vli>
:The Expression editor window displays.
<li>From the bottom pane, double-click the name of the field that contains the data that you would like to include in the chart.</li>
The expression to represent the field displays in the top pane.
<li>Click the Apply button.</li>
</ol>
<li>The '''Value Expression''' field contains the variable that returns the numeric value that will be represented on the chart.</li>
<ol type="a">
<li>Click the [[Image:iRepEditor.png]] icon that is displayed beside the Value Expression field.</li>
:The Expression editor window displays.
<li>From the Objects and expressions tab, select '''Variables''' from the left pane.</li>
<li>From the middle pane at the bottom of the Expression editor window, double-click the name of the variable that you would like to represent on the chart.</li>
<li>Click the '''Apply''' button.</li>
</ol>
<li>Click the '''OK''' button.</li>
:The Chart Properties window closes.
<li>Click the '''Close''' button.</li>
:The Chart Properties window closes.
<li>Save the report by either clicking the [[Image:iRepSave.png]] icon, or by selecting the '''Save''' option from the '''File''' menu.</li>
<li>Click the [[Image:iRepCompile.png]] button to compile the report.</li>
<li>Click the [[Image:iRepRun.png]] button to execute the report.</li>
319
edits

Navigation menu