Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse BIRT Report Developer Guide
Previous Page Home Next Page

Previous Next

The chart includes labels that identify the data value being presented in each sector. A legend identifies which product line each sector represents. Though the legend includes useful information, it also takes up space and reduces the size of the pie, so you may have to make a trade-off. One possibility is to remove the legend and use sector labels to display the product line information. Using the sector labels instead of a legend is a better choice when report users cannot easily distinguish colors. Each data label displays category information (the sector name) and value information (the total number of orders for the sector). For example, the following label identifies the motorcycles sector:

Figure 14-14 Legend section of Format Chart

3
Now you can add the legend information to the sector labels. Navigate to the value series formatting section, then choose Labels.
Figure 14‑15 shows Series Labels.

Figure 14-15 Series Labels formatting options

4
To add the section name to the label, ensure that Category Data appears in the drop-down list in the Values area, then choose Add. Category Data appears below Value Data in the list, as shown in Figure 14‑16.

Figure 14-16 Adding category data to a label

You need to rearrange the label data, so the Category Data, which are the product line names, appear before the values in the chart labels. For example, you want the label to read Classic Cars, 35,582 instead of 35,582, Classic Cars.
5
Select Value Data, and choose Remove, then, in the drop-down list, select Value Data again, and choose Add. Value Data now appears below Category Data in the list, as shown in Figure 14‑17.

Figure 14-17 Category data precedes data value

Now the labels display information in the correct order, but you still need to change the label appearance. When you use more than one kind of information in a label, you can use a separator between the different sections. The default separator is a comma.

Figure 14-18 Adding a label separator

Figure 14‑18

To change the number format of the value part of the label, select Value Data in the list, then choose the Format Editor. In Edit Format, you can change the format of date-and-time or numerical data.

Figure 14-19 Edit Format

Figure 14‑19

Figure 14-20 Opening Font Editor from Labels

Figure 14-21 Edit Font

Figure 14‑21
9
Now you set a consistent length for the leader lines that connect the labels to the sectors. Figure 14‑22 shows where to find the leader line settings.
To make the chart more useful to the report users, you can add interactive features, such as hyperlinks and highlighting. You can add interactive features to the chart area, legend, marker lines, and to other parts of the chart.

Figure 14-22 Editing leader lines while exploding sectors

10
To close the chart builder and see the chart element in the layout editor, choose Finish. Then, for the last time, choose Preview to preview the chart.

The completed chart shows the category names for each sector as well as the sector values. The size and organization of the chart make quick analysis possible, while still providing detailed data.

For example, the user can immediately see that the largest pie sector is Classic Cars, which has 35,582 orders, followed by Vintage Cars, which has 22,933. The two car sectors are larger than all other sectors combined. Other product-line groups, such as Trains, do not contribute significant numbers of orders.

Figure 14-23 Completed tutorial chart

Figure 14‑23
 

 


(c) Copyright Actuate Corporation 2009

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire