<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="trial2" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" isFloatColumnFooter="true">
	<property name="ireport.zoom" value="1.0" />
	<property name="ireport.x" value="0" />
	<property name="ireport.y" value="0" />
	<style name="Sans_Normal" isDefault="true" fontName="DejaVu Sans" fontSize="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" />
	<style name="Title" mode="Opaque" forecolor="#000000" backcolor="#FA2616" fontName="Andale Mono" fontSize="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" />
	<style name="Table">
		<box>
			<pen lineWidth="0.5 " lineColor="#000000" />
		</box>
	</style>
	<subDataset name="TableData">
		<field name="1" class="java.lang.String" />
	    <field name="2" class="java.lang.Number" />
    </subDataset>
	<parameter name="TableDataSource" class="net.sf.jasperreports.engine.JRDataSource" />
	<parameter name="ImagePath" class="java.lang.String" />
	<parameter name="ImageName" class="java.lang.String" />
	<parameter name="Title" class="java.lang.String" />
	<background>
		<band height="780" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="0" y="0" width="555" height="780" backcolor="#FAFAFA" />
				<textElement />
				<text />
			</staticText>
		</band>
	</background>
	<title>
		<band height="270">
		   <image scaleImage="Clip">
				<reportElement x="0" y="5" width="165" height="60"/>
				<imageExpression><![CDATA[ImageName]]></imageExpression>
				<hyperlinkTooltipExpression><![CDATA[ImageName]]></hyperlinkTooltipExpression>
			</image>
			<staticText>
				<reportElement style="Title" x="180" y="5" width="375" height="60" />
				<textElement textAlignment="Center" />
				<text>BAM Report</text>
			</staticText>
				<pieChart>
					<chart>
						<reportElement mode="Opaque" backcolor="#CCCCCC" x="0" y="80" width="555" height="175"/>
						<chartTitle>
							<titleExpression><![CDATA["Bar Chart"]]></titleExpression>
						</chartTitle>
						<chartSubtitle>
							<subtitleExpression><![CDATA["Chart Displaying Bars"]]></subtitleExpression>
						</chartSubtitle>
						<chartLegend/>
					</chart>
					<pieDataset>
						<dataset>
						<datasetRun subDataset="TableData">
						<dataSourceExpression><![CDATA[$P{TableDataSource}]]></dataSourceExpression>
					</datasetRun>
					</dataset>
							<keyExpression><![CDATA[$F{1}]]></keyExpression>
						<valueExpression><![CDATA[$F{2}]]></valueExpression>
					</pieDataset>
					<piePlot labelFormat="{0} {2}" legendLabelFormat="{0} {1}">
						<plot/>
						<itemLabel color="#000000" backgroundColor="#FFFFFF"/>
					</piePlot>
				</pieChart>
		</band>
	</title>
</jasperReport>

