User Tools
Writing /app/www/public/data/meta/onboarding/reportingmanager/creation_of_a_pie_report.meta failed
onboarding:reportingmanager:creation_of_a_pie_report
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onboarding:reportingmanager:creation_of_a_pie_report [2016/08/12 11:57] – scotty | onboarding:reportingmanager:creation_of_a_pie_report [2021/06/25 10:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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 : // | ||
| + | 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 | ||
| + | |||