Java Reference
In-Depth Information
Pie Charts
JasperReports allows us to create pie charts both in two and three dimensions. The
procedure to create 2-D and 3-D pie charts is almost identical. Therefore, we will
discuss them together.
Suppose, we are asked to create a report indicating the most popular aircraft models
registered in a particular city, in the order they appear in the FlightStats database
�refer to Chapter 4). This kind of information can be nicely summarized in a pie
chart. The following screenshot shows a report displaying this information for the
city of Washington, DC.
The JRXML to create the report looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN"
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="PieChartDemoReport">
 
Search WWH ::




Custom Search