Jump to content
We've recently updated our Privacy Statement, available here ×

dbourne

Members
  • Posts

    1
  • Joined

  • Last visited

dbourne's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I'm having an issue in iReport 3.7.1.1 where my graphs and chart images appear considerably below my Column Header and Column Detail sections. There's a large white space between the table and my charts...about 4-5 inches which is way too much when presenting. I've adjusted the width of the section, the padding, and the split type to no avail -- any help here would be greatly appreciated and make my reports look much better!! Here's the XML, and thanks in advance... <?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="TargetData Card and Sales Report" language="groovy" pageWidth="1008" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="81"/> <queryString> <![CDATA[]]> </queryString> <field name="Date" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="Blue_vol" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="Blue_sales" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="blue_cost" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="red_vol" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="red_sales" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="red_cost" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="green_vol" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="green_sales" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="green_cost" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="yellow_vol" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="yellow_sales" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <field name="yellow_cost" class="java.lang.Long"> <fieldDescription><![CDATA[]]></fieldDescription> </field> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"> <image> <reportElement x="0" y="0" width="162" height="48"/> <imageExpression class="java.lang.String"><![CDATA["C:\\Users\\Public\\Documents\\New Demo\\New Demo iReports\\Entiera Logo\\PODS-Logo-Red-With-Bottom_full.jpeg"]]></imageExpression> </image> <staticText> <reportElement x="772" y="-2" width="196" height="50"/> <textElement> <font size="20" isItalic="true"/> </textElement> <text><![CDATA[summary by Card]]></text> </staticText> <textField pattern="MMMMM dd, yyyy"> <reportElement x="543" y="46" width="100" height="20"/> <textElement/> <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> </band> </title> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement x="115" y="31" width="59" height="20"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Date Mailed]]></text> </staticText> <staticText> <reportElement x="174" y="31" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Volume]]></text> </staticText> <staticText> <reportElement x="233" y="31" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[sales]]></text> </staticText> <staticText> <reportElement x="292" y="31" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Cost]]></text> </staticText> <staticText> <reportElement x="351" y="31" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Volume]]></text> </staticText> <staticText> <reportElement x="410" y="31" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[sales]]></text> </staticText> <staticText> <reportElement x="469" y="31" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Cost]]></text> </staticText> <staticText> <reportElement x="528" y="31" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Volume]]></text> </staticText> <staticText> <reportElement x="587" y="31" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[sales]]></text> </staticText> <staticText> <reportElement x="646" y="31" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Cost]]></text> </staticText> <staticText> <reportElement x="705" y="31" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Volume]]></text> </staticText> <staticText> <reportElement x="764" y="31" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[sales]]></text> </staticText> <staticText> <reportElement x="823" y="31" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Cost]]></text> </staticText> <staticText> <reportElement x="174" y="11" width="162" height="20" forecolor="#0000CC" backcolor="#6699FF"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[blue Card]]></text> </staticText> <staticText> <reportElement x="351" y="11" width="162" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Red Card]]></text> </staticText> <staticText> <reportElement x="528" y="11" width="162" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Yellow Card]]></text> </staticText> <staticText> <reportElement x="705" y="11" width="162" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Green Card]]></text> </staticText> </band> </columnHeader> <detail> <band height="22" splitType="Stretch"> <textField> <reportElement x="115" y="0" width="59" height="20"/> <textElement> <font size="9"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{Date}]]></textFieldExpression> </textField> <textField pattern="#,##0"> <reportElement x="174" y="0" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{Blue_vol}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="233" y="0" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{Blue_sales}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="292" y="0" width="44" height="20" forecolor="#0000CC"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{blue_cost}]]></textFieldExpression> </textField> <textField pattern="#,##0"> <reportElement x="351" y="0" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{red_vol}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="410" y="0" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{red_sales}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="469" y="0" width="44" height="20" forecolor="#FF3300"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{red_cost}]]></textFieldExpression> </textField> <textField pattern="#,##0"> <reportElement x="705" y="0" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{green_vol}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="764" y="0" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{green_sales}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="823" y="0" width="44" height="20" forecolor="#339900"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{green_cost}]]></textFieldExpression> </textField> <textField pattern="#,##0"> <reportElement x="528" y="0" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{yellow_vol}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="587" y="0" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{yellow_sales}]]></textFieldExpression> </textField> <textField pattern="¤ #,##0"> <reportElement x="646" y="0" width="44" height="20" forecolor="#FFFF00"/> <textElement textAlignment="Center"> <font size="9"/> </textElement> <textFieldExpression class="java.lang.Long"><![CDATA[$F{yellow_cost}]]></textFieldExpression> </textField> </band> </detail> <summary> <band height="385" splitType="Stretch"> <componentElement> <reportElement x="0" y="0" width="469" height="385"/> <fc:chart xmlns:fc="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd" type="Column3D"> <fc:chartProperty name="caption"> <fc:propertyExpression><![CDATA["Card Volume"]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="xAxisName"> <fc:propertyExpression><![CDATA["Card Offer"]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="yAxisName"> <fc:propertyExpression><![CDATA["Volume"]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="rotateLabels"> <fc:propertyExpression><![CDATA[boolean.TRUE]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="slantLabels"> <fc:propertyExpression><![CDATA[boolean.TRUE]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="showValues"> <fc:propertyExpression><![CDATA[boolean.FALSE]]></fc:propertyExpression> </fc:chartProperty> <fc:chartDataset> <fc:item> <fc:seriesExpression><![CDATA["Red Volume"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{red_vol}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Blue Volume"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{Blue_vol}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Yellow Volume"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{yellow_vol}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Green Volume"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{green_vol}]]></fc:valueExpression> </fc:item> </fc:chartDataset> </fc:chart> </componentElement> <componentElement> <reportElement x="485" y="0" width="483" height="385"/> <fc:chart xmlns:fc="http://jaspersoft.com/fusion" xsi:schemaLocation="http://jaspersoft.com/fusion http://jaspersoft.com/schema/fusion.xsd" type="Line"> <fc:chartProperty name="caption"> <fc:propertyExpression><![CDATA["Cost and Revenue"]]></fc:propertyExpression> </fc:chartProperty> <fc:chartProperty name="showValues"> <fc:propertyExpression><![CDATA[boolean.FALSE]]></fc:propertyExpression> </fc:chartProperty> <fc:chartDataset> <fc:item> <fc:seriesExpression><![CDATA["Blue Revenue"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{Blue_sales}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Blue Cost"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{blue_cost}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Red Revenue"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{red_sales}]]></fc:valueExpression> </fc:item> <fc:item> <fc:seriesExpression><![CDATA["Red Cost"]]></fc:seriesExpression> <fc:labelExpression><![CDATA[$F{Date}]]></fc:labelExpression> <fc:valueExpression><![CDATA[$F{red_cost}]]></fc:valueExpression> </fc:item> </fc:chartDataset> </fc:chart> </componentElement> </band> </summary> </jasperReport>
×
×
  • Create New...