User Tools

Site Tools


onboarding:reportingmanager:creation_of_a_pie_report

Creation of a pie report

Author: Colm Carew

This assumes you have already created basic reports and line reports and know how to take reports from the Reporting Manager into the Report Builder project

Go into an instance of the Reporting Manager and click new report. Select Pie as the Type.

Put the approrpiate code into the Report Builder project

Running the example code should generate something similar to :

The key to pie chart is the addSlice method : pieChart.addSlice(50, [title: “World”,color:“990000”]) AND pieChart.addSlice(45, [title: “Hello”]) In this case what the Reporting Manager will do is add up all the numeric values which are the first value you pass into addSlice and then the number you entered will become a percentage of the total. Such that in our example World has a numeric value of 50 and Hello has a numeric value of 45 thus making the total 95. The percentage displayed beside World will be (50/95 * 100 )% which is about 52.6% and Hello will be (45/95 * 100 )% which is about 47.4%.

You can set the colour of each slice manually or if you don't set the slice colour manually the Reporting Manager will automatically set a different colour for each slice.

Self Assessment

Generating a pie chart that take in a date range (start date and finish date variables). The pie chart should display the percentage of traps received per technology between that date range

onboarding/reportingmanager/creation_of_a_pie_report.txt · Last modified: 2021/06/25 10:09 by 127.0.0.1