171 lines
11 KiB
Plaintext
171 lines
11 KiB
Plaintext
|
|
<jasperReport name="PieChartReport" language="java" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" uuid="166628aa-90af-4c8f-a71b-2eaadee2f0e1">
|
||
|
|
<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="Country" class="java.lang.String"/>
|
||
|
|
<query language="sql"><![CDATA[SELECT * FROM Orders WHERE ShipCountry = $P{Country} ORDER BY ShipCity]]></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="FreightSumReport" calculation="Sum" class="java.lang.Double">
|
||
|
|
<expression><![CDATA[$F{Freight}]]></expression>
|
||
|
|
</variable>
|
||
|
|
<variable name="FreightSumCity" resetType="Group" calculation="Sum" resetGroup="CityGroup" 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="DateHighestCity" resetType="Group" calculation="Highest" resetGroup="CityGroup" class="java.sql.Timestamp">
|
||
|
|
<expression><![CDATA[$F{OrderDate}]]></expression>
|
||
|
|
</variable>
|
||
|
|
<group name="CityGroup">
|
||
|
|
<expression><![CDATA[$F{ShipCity}]]></expression>
|
||
|
|
<groupHeader>
|
||
|
|
<band height="15">
|
||
|
|
<element kind="line" uuid="db896bfd-f674-443f-a52c-5fe24bf390c2" x="0" y="14" width="540" height="1"/>
|
||
|
|
<element kind="textField" uuid="2e9d40c7-3d6f-4db9-839d-eed85965496d" x="20" y="2" width="300" height="11" bookmarkLevel="2" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$F{ShipCity}]]></expression>
|
||
|
|
<anchorNameExpression><![CDATA[$F{ShipCity}]]></anchorNameExpression>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="98ec3108-d055-4788-9dc6-16bcd2d4204c" x="340" y="2" width="200" height="11" evaluationTime="Group" pattern="EEE, MMM d, yyyy" evaluationGroup="CityGroup" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$V{DateHighestCity}]]></expression>
|
||
|
|
</element>
|
||
|
|
</band>
|
||
|
|
</groupHeader>
|
||
|
|
<groupFooter>
|
||
|
|
<band height="15">
|
||
|
|
<element kind="frame" uuid="a0573d1d-8c83-4e17-b2bf-1dc306bfb4cf" mode="Opaque" x="0" y="0" width="540" height="11" forecolor="#C0C0C0" backcolor="#C0C0C0">
|
||
|
|
<element kind="staticText" uuid="ea12ba40-9bc8-4f9e-a8a8-a1f1d279a8a8" mode="Opaque" x="0" y="0" width="90" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Count :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="51a48b2c-1769-4a7f-b921-49ca6e859bdf" mode="Opaque" x="90" y="0" width="50" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$V{CityGroup_COUNT}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="d69c36fb-5b5a-4d0e-8b7a-b96caabe9b3c" mode="Opaque" x="140" y="0" width="280" height="11" backcolor="#C0C0C0" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Total :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="7bfddd2f-193f-4767-bb2f-1652c84ea4cb" mode="Opaque" x="420" y="0" width="120" height="11" backcolor="#C0C0C0" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$V{FreightSumCity}]]></expression>
|
||
|
|
</element>
|
||
|
|
</element>
|
||
|
|
</band>
|
||
|
|
</groupFooter>
|
||
|
|
</group>
|
||
|
|
<title height="380">
|
||
|
|
<element kind="textField" uuid="f06713e8-e1f1-4dad-a5db-8721c65ac588" x="0" y="0" width="555" height="35" fontSize="22.0" bookmarkLevel="1" hTextAlign="Center" style="Serif_Bold">
|
||
|
|
<expression><![CDATA["Shipments to " + $P{Country}]]></expression>
|
||
|
|
<anchorNameExpression><![CDATA[$P{Country} + " shipments"]]></anchorNameExpression>
|
||
|
|
<box style="Serif_Bold">
|
||
|
|
<topPen lineWidth="0.5"/>
|
||
|
|
</box>
|
||
|
|
</element>
|
||
|
|
<element kind="chart" chartType="pie" uuid="a63b38fe-68ce-4bb0-ac09-2735d8a78406" positionType="Float" x="0" y="50" width="555" height="300" evaluationTime="Report">
|
||
|
|
<dataset kind="pie" incrementType="Group" incrementGroup="CityGroup">
|
||
|
|
<series>
|
||
|
|
<keyExpression><![CDATA[$F{ShipCity}]]></keyExpression>
|
||
|
|
<valueExpression><![CDATA[$V{FreightSumCity}]]></valueExpression>
|
||
|
|
<sectionHyperlink linkType="Reference" linkTarget="Blank">
|
||
|
|
<hyperlinkReferenceExpression><![CDATA["http://en.wikipedia.org/wiki/" + $F{ShipCity}]]></hyperlinkReferenceExpression>
|
||
|
|
<hyperlinkTooltipExpression><![CDATA["Read more about " + $F{ShipCity}]]></hyperlinkTooltipExpression>
|
||
|
|
</sectionHyperlink>
|
||
|
|
</series>
|
||
|
|
</dataset>
|
||
|
|
<plot labelFormat="{0} {2}" legendLabelFormat="{0} {1}" showLabels="true">
|
||
|
|
<itemLabel color="#000000" backgroundColor="#FFFFFF">
|
||
|
|
<font bold="true"/>
|
||
|
|
</itemLabel>
|
||
|
|
</plot>
|
||
|
|
</element>
|
||
|
|
</title>
|
||
|
|
<columnHeader height="11">
|
||
|
|
<element kind="frame" uuid="4a65b0e7-80e3-4af2-9e44-9172b5ba5c5b" mode="Opaque" x="0" y="0" width="540" height="11" backcolor="#333333">
|
||
|
|
<element kind="staticText" uuid="9a105a7f-865d-43c7-a03b-7263c8c9a311" mode="Opaque" x="0" y="0" width="80" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Order]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="0debf846-c7a1-4978-97bc-00f5e65ec68b" mode="Opaque" x="80" y="0" width="290" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Center" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Name, City]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="c43d8968-62f5-45cd-8db7-4fe243cf6999" mode="Opaque" x="370" y="0" width="100" height="11" forecolor="#FFFFFF" backcolor="#333333" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Date]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="79da0493-a21d-439f-9e7e-902830dc9b82" mode="Opaque" x="470" y="0" width="70" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Freight]]></text>
|
||
|
|
</element>
|
||
|
|
</element>
|
||
|
|
</columnHeader>
|
||
|
|
<detail>
|
||
|
|
<band height="13">
|
||
|
|
<element kind="textField" uuid="e5ec0153-91b8-4f00-9376-8c628cb9aed7" x="1" y="0" width="70" height="11" hTextAlign="Right">
|
||
|
|
<expression><![CDATA[$F{OrderID}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="02a3be78-70b0-422f-81d1-fd3ef5b99878" positionType="Float" x="80" y="0" width="220" height="11" textAdjust="StretchHeight">
|
||
|
|
<expression><![CDATA[$F{ShipName} + ", " + $F{ShipCity}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="978631ec-a8dd-493e-bbef-b4807e240d4b" x="310" y="0" width="50" height="11" blankWhenNull="true">
|
||
|
|
<expression><![CDATA[$F{ShipRegion}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="f423ee94-70d7-4b9a-a90d-9c6fefbf6ecd" x="370" y="0" width="100" height="11" pattern="dd/MM/yyyy">
|
||
|
|
<expression><![CDATA[$F{OrderDate}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="fbb073bd-2aab-4038-acdf-d8791274356d" x="470" y="0" width="70" height="11" pattern="0.00" hTextAlign="Right">
|
||
|
|
<expression><![CDATA[$F{Freight}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="line" uuid="c7f7750f-6d8d-422b-851c-febff2c2bb58" positionType="Float" x="0" y="12" width="540" height="1" forecolor="#808080">
|
||
|
|
<pen lineWidth="0.5"/>
|
||
|
|
</element>
|
||
|
|
</band>
|
||
|
|
</detail>
|
||
|
|
<columnFooter height="11">
|
||
|
|
<element kind="frame" uuid="d4156620-50bd-4848-aea6-9941eaa6b2c2" mode="Opaque" x="0" y="0" width="540" height="11" backcolor="#333333">
|
||
|
|
<element kind="staticText" uuid="04ad8cd5-334b-47fa-861a-a6c09ed60b0d" mode="Opaque" x="0" y="0" width="90" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Count :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="a71248a9-46f4-43bb-934a-1daaf65c4ed3" mode="Opaque" x="90" y="0" width="50" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$V{COLUMN_COUNT}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="f890a596-b1ed-45d0-92ab-d7810076d5ce" mode="Opaque" x="140" y="0" width="280" height="11" forecolor="#FFFFFF" backcolor="#333333" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<text><![CDATA[Total :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="cd2a4a6e-ec39-42b5-97da-d39cf4fba351" mode="Opaque" x="420" y="0" width="120" height="11" forecolor="#FFFFFF" backcolor="#333333" pattern="0.00" hTextAlign="Right" style="Sans_Bold">
|
||
|
|
<expression><![CDATA[$V{FreightSumColumn}]]></expression>
|
||
|
|
</element>
|
||
|
|
</element>
|
||
|
|
</columnFooter>
|
||
|
|
<pageFooter height="30">
|
||
|
|
<element kind="frame" uuid="546d4863-ff95-4db9-8607-b1ba97b708fd" mode="Transparent" x="0" y="0" width="555" height="30">
|
||
|
|
<element kind="staticText" uuid="1eb77597-c859-416d-9d7a-cb0f5a13627e" x="5" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
|
||
|
|
<text><![CDATA[Count :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="74abc4d9-d951-48b9-826c-18c1955ae21b" x="55" y="10" width="45" height="20" fontSize="14.0" hTextAlign="Right">
|
||
|
|
<expression><![CDATA[$V{PAGE_COUNT}]]></expression>
|
||
|
|
</element>
|
||
|
|
<element kind="staticText" uuid="07c3051b-9225-4b07-a092-84ce57bf8cf6" x="430" y="10" width="50" height="20" fontSize="14.0" hTextAlign="Right">
|
||
|
|
<text><![CDATA[Total :]]></text>
|
||
|
|
</element>
|
||
|
|
<element kind="textField" uuid="c54af9f4-b7f4-4ab5-a366-969366845fb4" 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="6372ffa2-a19d-4be3-bd67-97a937f28ff3" x="200" y="10" width="155" height="20" fontSize="14.0" evaluationTime="Master" hTextAlign="Center">
|
||
|
|
<expression><![CDATA[$V{MASTER_CURRENT_PAGE} + "/" + $V{MASTER_TOTAL_PAGES}]]></expression>
|
||
|
|
</element>
|
||
|
|
</element>
|
||
|
|
</pageFooter>
|
||
|
|
</jasperReport>
|