HI all,
i am new to jasper reports. When i am generating the report i am getting some white space on bottom of the report. i placed the report in the summary band. to get the single chart. If its wrong correct me and give me a solution to remove the white space. i marked that place into red color.
the code is ::
<?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="report1" language="groovy" pageWidth="595" pageHeight="421" orientation="Landscape" columnWidth="573" leftMargin="20" rightMargin="2" topMargin="20" bottomMargin="5" uuid="f4a7a190-70f6-44c9-b4c5-b21d1d12045d"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <queryString> <![CDATA[SELECT TOP 5 [ProcessType] as processId ,count(*) as size FROM [MofaConnect].[dbo].[MFC_RequiredDocuments] group by ProcessType]]> </queryString> <field name="processId" class="java.lang.String"/> <field name="size" class="java.lang.Integer"/> <background> <band splitType="Stretch"/> </background> <summary> <band height="129" splitType="Immediate"> <barChart> <chart> <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="572" height="129" uuid="082c93be-cbf4-4bf5-9353-2ef72ba974e6"/> <chartTitle position="Top"/> <chartSubtitle/> <chartLegend/> </chart> <categoryDataset> <categorySeries> <seriesExpression> <![CDATA[$F{processId}.trim()+"v/s"+$F{size}]]> </seriesExpression> <categoryExpression> <![CDATA[$F{processId}]]> </categoryExpression> <valueExpression> <![CDATA[$F{size}]]> </valueExpression> </categorySeries> </categoryDataset> <barPlot> <plot/> <itemLabel/> <categoryAxisLabelExpression> <![CDATA[$F{processId}]]> </categoryAxisLabelExpression> <categoryAxisFormat> <axisFormat/> </categoryAxisFormat> <valueAxisFormat> <axisFormat/> </valueAxisFormat> </barPlot> </barChart> </band> </summary> </jasperReport>