<jasperReport name="BubbleChartReport" language="java" columnCount="2" pageWidth="595" pageHeight="842" columnWidth="270" columnSpacing="15" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" uuid="af0cfcef-2e6e-46c2-98b8-c52925ce1222">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Sample DB"/>
	<property name="net.sf.jasperreports.chart.render.type" value="svg"/>
	<property name="net.sf.jasperreports.image.dpi" value="150"/>
	<style name="Sans_Normal" default="true" fontName="DejaVu Sans" fontSize="8.0" bold="false" italic="false" underline="false" strikeThrough="false"/>
	<style name="Sans_Bold" fontName="DejaVu Sans" fontSize="8.0" bold="true" italic="false" underline="false" strikeThrough="false"/>
	<style name="Sans_Italic" fontName="DejaVu Sans" fontSize="8.0" bold="false" italic="true" underline="false" strikeThrough="false"/>
	<style name="Serif_Normal" fontName="DejaVu Serif" fontSize="10.0" bold="false" italic="false" underline="false" strikeThrough="false"/>
	<style name="Serif_Bold" fontName="DejaVu Serif" fontSize="10.0" bold="true" italic="false" underline="false" strikeThrough="false"/>
	<parameter name="ReportTitle" class="java.lang.String">
		<defaultValueExpression><![CDATA["Bubble Chart Report"]]></defaultValueExpression>
	</parameter>
	<parameter name="MaxOrderID" class="java.lang.Integer">
		<defaultValueExpression><![CDATA[12500]]></defaultValueExpression>
	</parameter>
	<query language="sql"><![CDATA[SELECT * FROM Orders WHERE OrderID <= $P{MaxOrderID} ORDER BY ShipCountry]]></query>
	<field name="ShippedDate" class="java.sql.Timestamp"/>
	<field name="ShipCountry" class="java.lang.String"/>
	<field name="RequiredDate" class="java.sql.Timestamp"/>
	<field name="CustomerID" class="java.lang.String"/>
	<field name="OrderID" class="java.lang.Integer"/>
	<field name="ShipName" class="java.lang.String"/>
	<field name="ShipVia" class="java.lang.Integer"/>
	<field name="ShipPostalCode" class="java.lang.String"/>
	<field name="OrderDate" class="java.sql.Timestamp"/>
	<field name="ShipCity" class="java.lang.String"/>
	<field name="ShipAddress" class="java.lang.String"/>
	<field name="EmployeeID" class="java.lang.Integer"/>
	<field name="ShipRegion" class="java.lang.String"/>
	<field name="Freight" class="java.lang.Double"/>
	<variable name="FirstLetter" resetType="None" class="java.lang.String">
		<expression><![CDATA[$F{ShipCountry}.substring(0, 1).toUpperCase()]]></expression>
	</variable>
	<variable name="FreightSumFirstLetterGroup" resetType="Group" calculation="Sum" resetGroup="FirstLetterGroup" class="java.lang.Double">
		<expression><![CDATA[$F{Freight}]]></expression>
	</variable>
	<variable name="FreightSumCountryGroup" resetType="Group" calculation="Sum" resetGroup="CountryGroup" class="java.lang.Double">
		<expression><![CDATA[$F{Freight}]]></expression>
	</variable>
	<variable name="FreightSumColumn" resetType="Column" calculation="Sum" class="java.lang.Double">
		<expression><![CDATA[$F{Freight}]]></expression>
	</variable>
	<variable name="FreightSumPage" resetType="Page" calculation="Sum" class="java.lang.Double">
		<expression><![CDATA[$F{Freight}]]></expression>
	</variable>
	<variable name="FreightSumReport" calculation="Sum" class="java.lang.Double">
		<expression><![CDATA[$F{Freight}]]></expression>
	</variable>
	<variable name="DateHighestCountryGroup" resetType="Group" calculation="Highest" resetGroup="CountryGroup" class="java.sql.Timestamp">
		<expression><![CDATA[$F{OrderDate}]]></expression>
	</variable>
	<variable name="RegionCountCountryGroup" resetType="Group" calculation="Count" resetGroup="CountryGroup" class="java.lang.Integer">
		<expression><![CDATA[$F{ShipRegion}]]></expression>
	</variable>
	<group name="FirstLetterGroup" minHeightToStartNewPage="200" startNewColumn="true">
		<expression><![CDATA[$V{FirstLetter}]]></expression>
		<groupHeader>
			<band height="25">
				<element kind="rectangle" uuid="424a07b7-dfb7-427c-a658-7afb0177cea4" x="0" y="14" width="270" height="11" forecolor="#FFDDDD" backcolor="#FFDDDD"/>
				<element kind="staticText" uuid="cd27d976-b427-4954-bad4-0895a4316963" mode="Opaque" x="0" y="14" width="130" height="11" forecolor="#FF0000" backcolor="#FFDDDD" underline="true" style="Sans_Italic">
					<text><![CDATA[Countries Starting With Letter :]]></text>
				</element>
				<element kind="textField" uuid="20b26bfd-d706-4d35-8204-28d6a2cd6125" mode="Opaque" x="130" y="14" width="140" height="11" forecolor="#FF0000" backcolor="#FFDDDD" style="Sans_Bold">
					<expression><![CDATA[$V{FirstLetter}]]></expression>
				</element>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="25">
				<element kind="line" uuid="b8627b59-4b7b-444a-bb0f-bfb5f45b4272" x="0" y="0" width="270" height="1" forecolor="#FF0000"/>
				<element kind="staticText" uuid="014b7526-a82d-41fa-be88-a52f92c05eaf" x="0" y="1" width="45" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
					<text><![CDATA[Count :]]></text>
				</element>
				<element kind="textField" uuid="f4faa7ea-308a-440c-bbb4-d1c28f797e9f" x="45" y="1" width="25" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
					<expression><![CDATA[$V{FirstLetterGroup_COUNT}]]></expression>
				</element>
				<element kind="staticText" uuid="bb10e76a-16c7-42c9-9497-bf05de2fbb8a" x="70" y="1" width="140" height="11" forecolor="#FF0000" hTextAlign="Right" style="Sans_Bold">
					<text><![CDATA[Total :]]></text>
				</element>
				<element kind="textField" uuid="05b68c75-09d9-4727-a491-1f6d493d911c" x="210" y="1" width="60" height="11" forecolor="#FF0000" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
					<expression><![CDATA[$V{FreightSumFirstLetterGroup}]]></expression>
				</element>
			</band>
		</groupFooter>
	</group>
	<group name="CountryGroup">
		<expression><![CDATA[$F{ShipCountry}]]></expression>
		<groupHeader>
			<band height="225">
				<element kind="line" uuid="d1c16194-2bd4-47df-9208-7b4205661fe7" x="0" y="14" width="270" height="1"/>
				<element kind="textField" uuid="bb5eae97-9128-438e-9055-8ee4115eed92" x="10" y="2" width="150" height="11" style="Sans_Bold">
					<expression><![CDATA[$F{ShipCountry}]]></expression>
				</element>
				<element kind="textField" uuid="d3280ad2-efb5-4d22-b923-3857cf649de9" x="170" y="2" width="100" height="11" evaluationTime="Group" pattern="EEE, MMM d, yyyy" evaluationGroup="CountryGroup" hTextAlign="Right" style="Sans_Bold">
					<expression><![CDATA[$V{DateHighestCountryGroup}]]></expression>
				</element>
				<element kind="chart" chartType="bubble" uuid="d9ebe2fd-bf5c-44a9-9433-c0643447dd9f" positionType="Float" x="0" y="25" width="270" height="175" evaluationTime="Group" evaluationGroup="CountryGroup">
					<dataset kind="xyz" resetGroup="CountryGroup" resetType="Group">
						<series>
							<seriesExpression><![CDATA["Double Freight"]]></seriesExpression>
							<xvalueExpression><![CDATA[$F{OrderID}]]></xvalueExpression>
							<yvalueExpression><![CDATA[$F{Freight} * 2d]]></yvalueExpression>
							<zvalueExpression><![CDATA[40.00d]]></zvalueExpression>
						</series>
						<series>
							<seriesExpression><![CDATA["Normal Freight"]]></seriesExpression>
							<xvalueExpression><![CDATA[$F{OrderID}]]></xvalueExpression>
							<yvalueExpression><![CDATA[$F{Freight}]]></yvalueExpression>
							<zvalueExpression><![CDATA[30.00d]]></zvalueExpression>
						</series>
						<series>
							<seriesExpression><![CDATA["Half Freight"]]></seriesExpression>
							<xvalueExpression><![CDATA[$F{OrderID}]]></xvalueExpression>
							<yvalueExpression><![CDATA[$F{Freight} / 2d]]></yvalueExpression>
							<zvalueExpression><![CDATA[20.00d]]></zvalueExpression>
						</series>
					</dataset>
					<plot scaleType="RangeAxis"/>
				</element>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="15">
				<element kind="rectangle" uuid="6c7e5f1e-6c93-4646-9261-95d7542ef621" x="0" y="0" width="270" height="11" forecolor="#C0C0C0" backcolor="#C0C0C0"/>
				<element kind="staticText" uuid="a2d69df3-0926-4fa3-b512-2b8be1fe68af" mode="Opaque" x="0" y="0" width="45" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
					<text><![CDATA[Count :]]></text>
				</element>
				<element kind="textField" uuid="388b987e-12be-4572-b393-4d9a166f4f3c" mode="Opaque" x="45" y="0" width="25" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
					<expression><![CDATA[$V{CountryGroup_COUNT}]]></expression>
				</element>
				<element kind="staticText" uuid="fb07530b-fc70-4c47-9f6d-55e331a24517" mode="Opaque" x="70" y="0" width="140" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
					<text><![CDATA[Total :]]></text>
				</element>
				<element kind="textField" uuid="73647d9e-f88f-4aec-b0b8-55e93ebe43f2" mode="Opaque" x="210" y="0" width="60" height="11" backcolor="#C0C0C0" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
					<expression><![CDATA[$V{FreightSumCountryGroup}]]></expression>
				</element>
			</band>
		</groupFooter>
	</group>
	<title height="50">
		<element kind="elementGroup"/>
		<element kind="staticText" uuid="7dfcdc1f-caea-4744-9910-89d22626e319" x="0" y="0" width="555" height="35" fontSize="22.0" hTextAlign="Center" style="Serif_Bold">
			<text><![CDATA[Bubble Chart Report]]></text>
			<box style="Serif_Bold">
				<topPen lineWidth="0.5"/>
			</box>
		</element>
	</title>
	<columnHeader height="11">
		<element kind="rectangle" uuid="944599dc-3425-4918-996f-e2358f69fdc2" x="0" y="0" width="270" height="11" backcolor="#333333"/>
		<element kind="staticText" uuid="41342809-429b-46d6-ab2a-fc41928db655" mode="Opaque" x="0" y="0" width="40" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
			<text><![CDATA[Order]]></text>
		</element>
		<element kind="staticText" uuid="f0bffa70-207f-4e1e-be66-a78a905b99e4" mode="Opaque" x="40" y="0" width="145" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
			<text><![CDATA[Name, City]]></text>
		</element>
		<element kind="staticText" uuid="7b165ecc-8694-416b-92cc-d3d927cad8c1" mode="Opaque" x="185" y="0" width="50" height="11" forecolor="#FFFFFF" backcolor="#333333" style="Sans_Bold">
			<text><![CDATA[Date]]></text>
		</element>
		<element kind="staticText" uuid="f4ef73fb-5262-4923-a37b-aa4f3a382dc9" mode="Opaque" x="235" y="0" width="35" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
			<text><![CDATA[Freight]]></text>
		</element>
	</columnHeader>
	<detail>
		<band height="13">
			<element kind="textField" uuid="754e7bd9-2ac7-4152-a956-64f78c8df7c0" x="1" y="0" width="35" height="11" hTextAlign="Right">
				<expression><![CDATA[$F{OrderID}]]></expression>
			</element>
			<element kind="textField" uuid="dcddaa21-da8f-4de5-8d1d-039899cc59a0" positionType="Float" x="40" y="0" width="110" height="11" textAdjust="StretchHeight">
				<expression><![CDATA[$F{ShipName} + ", " + $F{ShipCity}]]></expression>
			</element>
			<element kind="textField" uuid="a6c6931b-2b37-46b5-9513-b05261bd8a1e" x="155" y="0" width="25" height="11" blankWhenNull="true">
				<expression><![CDATA[$F{ShipRegion}]]></expression>
			</element>
			<element kind="textField" uuid="116fc729-b881-4567-a66d-69c927f92e38" x="185" y="0" width="50" height="11" pattern="dd/MM/yyyy">
				<expression><![CDATA[$F{OrderDate}]]></expression>
			</element>
			<element kind="textField" uuid="2d865ba7-cc7d-467c-aa80-6917e563575b" x="235" y="0" width="35" height="11" pattern="0.00" hTextAlign="Right">
				<expression><![CDATA[$F{Freight}]]></expression>
			</element>
			<element kind="line" uuid="a45577ea-829a-427f-969e-38c3b8900b81" positionType="Float" x="0" y="12" width="270" height="1" forecolor="#808080">
				<pen lineWidth="0.5"/>
			</element>
		</band>
	</detail>
	<columnFooter height="11">
		<element kind="rectangle" uuid="e2448c5e-be9d-48f9-8f07-c4e6a0603fc8" x="0" y="0" width="270" height="11" backcolor="#333333"/>
		<element kind="staticText" uuid="b9c6fac0-40a4-46c5-a644-dcfccd9c567a" mode="Opaque" x="0" y="0" width="45" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
			<text><![CDATA[Count :]]></text>
		</element>
		<element kind="textField" uuid="c370e68a-9007-4e1b-9d54-f095f7aa72b4" mode="Opaque" x="45" y="0" width="25" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
			<expression><![CDATA[$V{COLUMN_COUNT}]]></expression>
		</element>
		<element kind="staticText" uuid="ca219e52-903d-4fed-9b15-4560bb22dfb4" mode="Opaque" x="70" y="0" width="140" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
			<text><![CDATA[Total :]]></text>
		</element>
		<element kind="textField" uuid="f33d3cc4-93c9-4222-934a-5fa83e3d1d45" mode="Opaque" x="210" y="0" width="60" height="11" forecolor="#FFFFFF" backcolor="#333333" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
			<expression><![CDATA[$V{FreightSumColumn}]]></expression>
		</element>
	</columnFooter>
	<pageFooter height="30">
		<element kind="rectangle" uuid="7448a1b9-8611-49a6-90f3-bd69ee92257b" mode="Transparent" x="0" y="5" width="555" height="25"/>
		<element kind="staticText" uuid="668138b6-2256-48ad-8924-107e47cb81ca" x="5" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
			<text><![CDATA[Count :]]></text>
		</element>
		<element kind="textField" uuid="435c22a0-b55e-48b4-b514-80eb61a55dbb" x="55" y="10" width="45" height="20" fontSize="14.0" hTextAlign="Right">
			<expression><![CDATA[$V{PAGE_COUNT}]]></expression>
		</element>
		<element kind="staticText" uuid="2646a306-57d9-4b0f-b70e-261fb753ce54" x="430" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
			<text><![CDATA[Total :]]></text>
		</element>
		<element kind="textField" uuid="266baff9-bb7f-4f28-95c5-ab9b68d2c349" x="480" y="10" width="70" height="20" fontSize="14.0" pattern="0.00" hTextAlign="Right">
			<expression><![CDATA[$V{FreightSumPage}]]></expression>
		</element>
		<element kind="textField" uuid="2cca3030-f75a-4f61-9764-fc59a3c27433" x="200" y="10" width="75" height="20" fontSize="14.0" hTextAlign="Right">
			<expression><![CDATA[$V{PAGE_NUMBER}]]></expression>
		</element>
		<element kind="staticText" uuid="30063786-1518-4153-a9e4-7ba50204858f" x="275" y="10" width="5" height="20" fontSize="14.0" hTextAlign="Center">
			<text><![CDATA[/]]></text>
		</element>
		<element kind="textField" uuid="a01203db-421d-4a67-ab00-7628d39a3168" x="280" y="10" width="75" height="20" fontSize="14.0" evaluationTime="Report">
			<expression><![CDATA[$V{PAGE_NUMBER}]]></expression>
		</element>
	</pageFooter>
</jasperReport>
