ireport doesn't show the chart or crosstab

0
Hi All!

I have followed the instructions of the iReport 1.2.1 manual of the chart and the crosstab report demo through the iReport 1.2.2 and 1.2.5, but the chart or crosstab are not showed. All is blank.

Only the values of the tabular part of detail of the demo are showed but not the chart neither the cross tab.

What is the trick to create the simple pie 3d as described in the ireport 1.2.1 manual?

thanks,
Omar
Post edited by: omarachraf, at: 2006/07/25 22:13
omarachraf's picture
Joined: Jul 25 2006 - 7:59am
Last seen: 13 years 2 months ago

5 Answers:

0
Hello,
I have the same problem. I am using an IReport manual I bought today and I followed the instruction but I got an empty chart.
The values from the database are printed on the report with an empty graph. I also tried other type of charts with the same results.
I am using Ubuntu 6.06 with IReport 1.25.

I attached screenshot of the output and the report jrxml.

Regards,
Oren

Post edited by: oreng, at: 2006/08/01 14:37
Post edited by: oreng, at: 2006/08/01 14:39
oreng's picture
5
Joined: Jul 18 2006 - 4:02pm
Last seen: 13 years 3 months ago
0
oreng wrote:
Hello,
I have the same problem. I am using an IReport manual I bought today and I followed the instruction but I got an empty chart.
The values from the database are printed on the report with an empty graph. I also tried other type of charts with the same results.
I am using Ubuntu 6.06 with IReport 1.25.

I attached screenshot of the output and the report jrxml.

Regards,
Oren

Post edited by: oreng, at: 2006/08/01 14:37<br><br>Post edited by: oreng, at: 2006/08/01 14:39
size=350]
oreng's picture
5
Joined: Jul 18 2006 - 4:02pm
Last seen: 13 years 3 months ago
0
Cannot attach the xml so this is the text:

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="yields_chart"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="595"
pageHeight="842"
columnWidth="535"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />

<queryString><![CDATA[select name , val, dd from tt]]></queryString>

<field name="name" class="java.lang.String"/>
<field name="val" class="java.lang.Integer"/>
<field name="dd" class="java.lang.Integer"/>

<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="50" isSplitAllowed="true" >
<staticText>
<reportElement
x="153"
y="3"
width="256"
height="41"
key="staticText-1"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Lucida Bright" pdfFontName="/home/oren/arial.ttf" isBold="true" isPdfEmbedded ="true" pdfEncoding ="Cp1255"/>
</textElement>
<text><![CDATA[×יסוי גרף]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="22" isSplitAllowed="true" >
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="26"
y="3"
width="100"
height="18"
key="textField"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="137"
y="2"
width="100"
height="18"
key="textField"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{val}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
x="284"
y="2"
width="100"
height="18"
key="textField"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Integer"><![CDATA[$F{dd}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="0" isSplitAllowed="true" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="true" >
</band>
</pageFooter>
<summary>
<band height="200" isSplitAllowed="true" >
<pieChart>
<chart hyperlinkTarget="Self" >
<reportElement
x="26"
y="21"
width="337"
height="156"
backcolor="#23F3D7"
key="element-1"/>
<box topBorder="4Point" topBorderColor="#000000" leftBorder="4Point" leftBorderColor="#000000" rightBorder="4Point" rightBorderColor="#000000" bottomBorder="4Point" bottomBorderColor="#000000"/>
</chart>
<pieDataset>
<dataset >
<incrementWhenExpression><![CDATA[]]></incrementWhenExpression>
</dataset>
<keyExpression><![CDATA[$F{name}]]></keyExpression>
<valueExpression><![CDATA[$F{val}]]></valueExpression>
<labelExpression><![CDATA[$F{name}]]></labelExpression>
</pieDataset>
<piePlot>
<plot />
</piePlot>
</pieChart>
</band>
</summary>
</jasperReport>

Sorry for the many posts.

Oren
Post edited by: oreng, at: 2006/08/01 14:46
oreng's picture
5
Joined: Jul 18 2006 - 4:02pm
Last seen: 13 years 3 months ago
0
‎The problem is a bug in version 1.2.5 -
http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&f...

Thanks,
Oren
oreng's picture
5
Joined: Jul 18 2006 - 4:02pm
Last seen: 13 years 3 months ago
0
Thank you for the tip!!!
Please, fix this as soon as possible, because i was
using version 1.2.4 and it worked fine until i
go to version 1.2.5.

bye
semilla's picture
Joined: Jul 18 2006 - 5:53am
Last seen: 13 years 3 months ago
Feedback