A graph or chart is a diagrammatic illustration of data represented by symbols, such as bars in a Bar Chart, lines in a Line Chart, or slices in a Pie Chart.
Data can be easily and quickly presented in a visual and meaningful format using the Chart Designer.
Enter the details for the Report Chart and then open the Chart Designer to add chart series and areas.
The Build Option property controls the output of the Report by including the content in HTML and / or PDF builds.
Report Chart Designer
The Chart Designer allows chart areas, legends and series to be defined using the property pages.
A list of Data Tables should be selectable from the drop-down list for chart binding under the Table Name property.
Various different chart series and types can be selected including bar, line, column and pie as illustrated here.
Click Edit Chart button or right click on the Report Chart to open the properties for editing.
Two important properties of the Report Chart are the Series and ChartAreas properties, both of which are collection properties.
Select the XValueMember and YValueMembers from the drop-down lists.
Many other settings can be defined to customise the Report Chart appearance and style.
Adding legends to the chart is easy with the Legend Collection Editor.
Data Filters can be applied to Report Charts for filtering and sorting.
To enable Data Filtering click the Data Filter (...) property button to open the filter properties page.
Data Filters can be used to select and sort data from Data Tables returning specific results and / or rearranging into some meaningful order.
For example, if a Select Filter is applied for Fee Name = 'Cool Doc Fee' then only the data with this criteria will be output in the Report Chart.
Data Row Limit
The number of Data Rows in the Data Table can be limited by specifying a Row Limit. Open the property page for the Data Filter and enter a limit for the Data Rows.
Data Distinct determines how data is summarized in Report Charts with special functions for summarising data by Sum, Average, Count, Max, Min, First, Last and Exists.
Enable and choose the relevant Data Columns and function for the Data Table according to how the data needs to be summarised or presented.
Data Filter Designer
The Data Filter Designer is a powerful tool to help with the design and application of Data Filtering and Sorting on Data Columns.
Select the Data Columns to filter and / or sort from the drop-down lists.
Click the Run Filter button to view the filtered data output and then OK to apply to the Report Chart.
Inserting a Line Chart into the Report
Report showing the share prices for IBM and took less than five minutes to create.
Report Charts can be defined with Report Data Contexts which are used to drive and build Report output content and also allows the consolidation and integration of data from multiple different sources and types such as API's, websites and data files to be read and used in the Report.
Data Contexts can be applied to specific Report elements allowing data in XML documents to be contextually enumerated. The default Data Context is the Report Data Source (XDM) root node and if no Data Context is specified then the current Report Data Source will be used.
To apply a Data Context to a Report element expand the Data Context property or click the (...) property button and specify the Content Type as either a Literal (Constant) or a File.
Context Types can be either XQuery, Python, XML, XLS, XLSX, CSV, JSon or HTML.
Reporting also features Extensible Stylesheet Language Transformations (XSLT) which is a language for transforming XML documents into other XML documents or other formats such as HTML for web pages or plain text.
To specify a Report XSLT to transform the Report Chart Data Context click the XSLT (...) property button.
Report Rules are conditional XQuery or Python expressions that determine if Report content is enabled and applied to the build. Rule based queries return a Boolean that is either True or False and can query the Report Data Source and other Report Data Contexts. Rules are used for controlling the flow, visibility and activation of reporting content.
Report Rules if empty or null by default will always return True.
Report Namespaces are used for providing uniquely named elements and attributes and is a mechanism to avoid name conflicts by differentiating elements or attributes within an XML document that may have identical names, but different definitions. If the Report Data Source contains namespaces they can be applied to the XQuery Processor.