Jump to content
Changes to the Jaspersoft community edition download ×

On Graphs When the number of days is less than 9, Jasper repeats the days in the x-axis (Duplicate data for the same date when the number of days in less than 9 days)


sskundra

Recommended Posts

</pageHeader>
    <pageFooter>
        <band height="33">
            <textField pattern="MM/dd/yyyy h.mm a" isBlankWhenNull="true">
                <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="7" width="222" height="10" isPrintWhenDetailOverflows="true" uuid="beae1b5c-c7c3-4094-b363-036897dda02e"/>
                <textElement>
                    <font fontName="Times New Roman" size="8" isBold="false" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
            </textField>
            <line>
                <reportElement x="0" y="3" width="752" height="1" uuid="37e8442e-3063-4bad-b711-2a0b49674042"/>
                <graphicElement>
                    <pen lineWidth="2.0" lineStyle="Solid"/>
                </graphicElement>
            </line>
            <textField isBlankWhenNull="true">
                <reportElement x="0" y="20" width="221" height="10" uuid="a5662564-2c1d-46d0-8976-7247b58f8484"/>
                <textElement>
                    <font fontName="Times New Roman" size="8" isItalic="true" pdfFontName="Times-Italic" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$P{REPORT_NAME}]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true" evaluationTime="Auto">
                <reportElement x="652" y="10" width="100" height="13" uuid="97234a21-cdf4-4663-8490-861e3db0373a"/>
                <textElement textAlignment="Right">
                    <font fontName="Times New Roman" size="8" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$V{currentPage} == null? "Page " + $V{PAGE_NUMBER} + "  of  " + $V{PAGE_NUMBER} :
"Page " + $V{currentPage} + "  of  " + $V{PAGE_NUMBER}]]></textFieldExpression>
            </textField>
        </band>
    </pageFooter>
    <noData>
        <band height="90">
            <image scaleImage="RetainShape" isUsingCache="true" onErrorType="Blank" evaluationTime="Auto">
                <reportElement x="0" y="0" width="130" height="35" uuid="02322e67-6eb6-4092-b750-af4556a2e691">
                    <property name="local_mesure_unitx" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.x" value="px"/>
                    <property name="local_mesure_unity" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    <property name="local_mesure_unitheight" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <imageExpression><![CDATA[$P{ReportLogo}]]></imageExpression>
            </image>
            <line>
                <reportElement x="0" y="60" width="752" height="1" uuid="62bd20f1-d1bb-4517-8cfb-f554a8417efd">
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    <property name="local_mesure_unitx" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.x" value="px"/>
                    <property name="local_mesure_unity" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                </reportElement>
                <graphicElement>
                    <pen lineWidth="1.0" lineStyle="Solid"/>
                </graphicElement>
            </line>
            <staticText>
                <reportElement x="0" y="61" width="752" height="23" uuid="17cbabbf-fd05-4339-b0f4-97f7c7e60ead">
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    <property name="local_mesure_unity" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                </reportElement>
                <textElement textAlignment="Center" verticalAlignment="Middle">
                    <font fontName="Times New Roman" size="12" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[No activity found for this period.]]></text>
            </staticText>
            <staticText>
                <reportElement x="380" y="0" width="372" height="20" uuid="a485cf13-dfbe-4ecb-8e0d-b34a1eb63e95">
                    <property name="local_mesure_unitheight" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                    <property name="local_mesure_unity" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
                    <font fontName="Times New Roman" size="14" isBold="true" pdfFontName="Times-Bold" isPdfEmbedded="true"/>
                </textElement>
                <text><![CDATA[investment Yield Chart]]></text>
            </staticText>
            <textField>
                <reportElement x="380" y="20" width="372" height="15" uuid="9e4985a7-d070-4328-a8ca-99b55a918552">
                    <property name="local_mesure_unity" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="local_mesure_unitwidth" value="pixel"/>
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                </reportElement>
                <textElement textAlignment="Right">
                    <font fontName="Times New Roman" size="12" pdfFontName="Times-Roman"/>
                </textElement>
                <textFieldExpression><![CDATA["for the period from " + new SimpleDateFormat("MM/dd/yyyy").format($P{StartDate}) +
 " to " + new SimpleDateFormat("MM/dd/yyyy").format($P{EndDate})]]></textFieldExpression>
            </textField>
        </band>
    </noData>
</jasperReport>
jasper-reports
share
edit
delete
flag

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...