Changes

Jump to: navigation, search

Summarize iReport Template Data

53 bytes removed, 17:05, 20 September 2013
Charts
#Choose Main report dataset.
# Provide a '''Series Expression''' (''optional'').
#:[[Image:iReport Charts2Chart Bar1.png|center|500px|''Series Expression'']]<div align="center">''Series Expression''</div>
# The Series Expression allows you to define an added level of detail to your bar chart (if desired). To select the '''Series''' choose the '''Expression editor''' button and '''choose one of the ''fields'' the report is grouped by''' (e.g. ''status''). Note that charts in iReport will fail if the '''Series''' value is null. In order to account for null values, you will need to modify the expression so that null values are grouped into their own group. The expression should be modified to include the bolded text below. You should replace the field the name of the field that you selected above.
#: '''$F{status} == null ? "N/A" : $F{status}'''
#*If you would like the horizontal axis of the bar chart to reflect the values of an additional attribute, the Series Expression would be the expression for the secondary level of detail. In the example shown below, the x-axis reflects the land priorities (e.g., Low, Medium, or High). In addition to displaying the priority, the bars of the chart use a different colour to reflect those land which block water access (red) vs. those that do not block the water (blue).
#:[[Image:iRep31.png|center|500px|''Figure 31. Bar chart with different series expression'']]<div align="center">''Figure 31. Bar chart with different series Expression''</div>
  #:[[Image:iReport Charts2.png|center|500px|''Chart options'']]<div align="center">''Chart options''</div># The next step is to provide the correct data for the chart to use. Bar charts require a '''unique identifiercstegory expression''' and a '''numericvalue expression''' value where the unique identifier value expression is the a field to group the data by (i.e. the names of the wedgesX axis) and numeric value expression is the value to sum. #:[[Image:iReport Charts3Chart Bar2.png|center|500px|''Chart optionsCategory and Values'']]<div align="center">''Chart optionsCategory and Values''</div># To select the '''unique valuecategory expression''' choose the '''Expression editor''' button and '''choose one of the ''fieldfields'' the report is grouped by''' (e.g. ''status''). Note that charts in iReport will fail if the '''unique valuecategory expression''' is null. In order to account for null values, you will need to modify the expression so that null values are grouped into their own group. The expression should be modified to include the bolded text below. You should replace attribute field with the name of the attribute field that you selected in step b above.
#: '''$F{status} == null ? "N/A" : $F{status}'''
#:[[Image:iReport Charts5.png|center|500px|''Set Unique ValueCategory Expression'']]<div align="center">''Set Unique ValueCategory Expression''</div>#Next, select the '''numeric valueexpression''' that contains the desired numeric data for the chart. '''Note: This should always be one of the variable variables created in step 3 above''' (e.g. ''SUM_status_byAreaSize''). #:[[Image:iReport Charts6.png|center|500px|''Select the desired numeric variablevalue expression'']]<div align="center">''Select the desired numeric variablevalue expression''</div>
#Choose '''Next'''.
#:[[Image:iReport Charts7.png|center|500px|''Chart Wizard Completed'']]<div align="center">''Chart Wizard Completed''</div>
# Choose '''Finish''' and the iReport template displays with the Chart.
#:[[Image:iReport Charts8Chart Bar3.png|center|500px|''iReport displays with Chart'']]<div align="center">''iReport displays with Chart''</div>
# The report can now be previewed to ensure it is functioning as expected.
#:[[Image:iReport ChartsPreviewChart BarPreview.png|center|500px|''Preview with Chart'']]<div align="center">''Preview with chart''</div> 
===OLD===
<li>Right-click anywhere on the chart.</li>
<li>Select the '''Chart Properties''' option.</li>
319
edits

Navigation menu