In this post, I will shortly explains how to use the Orchard.Reporting module.
The module allows you represent the data of Orchard queries in Piecharts. As I started working on reporting for OrchardCollaboration, I thought it is good idea to implement it in general way, so that it can be used for other purposes, however the module is not yet integrated with OrchardCollaboration.
Using the module is simple. After installation, the module adds a new menu called “Data Reports” to the Dashboard admin.
By clicking on it, you can see the list of Data Reports.
For viewing the data as a chart, first we need to create a Data Report for a query, then we can represent the report in a SimpleChart type.
By clicking on create button in the Data Reports page, we can create a new Data Report.
In the create Data Report page, we can select the query, Chart Type, Aggregate method such as (Count, Sum, Average…) and the aggregate field. At the moment, I only implement aggregation for Enumeration and numeric fields. But one can implement new aggregate fields easily by implementing IGroupByParameterProvider interface. After creating a DataReport, we can represent it by SimpleChart Parts. I created a new Content Type called SimpleChart which has the SImpleChartPart type.
And here is a Chart for the Data Report I created.
In this version, the module only support PieCharts, in the next versions, I will extend it to support the other charts too.