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

Graph not showing  


ktrinad

Recommended Posts

By: Herbert Augustiny - haugusti

Graph not showing Â

2006-05-10 05:56

Hi againÂ

Â

With an other report I have the following problem.Â

Â

The report contains a XY chart and when I run the report, the chart is not shown in the HTML passed back to the browser. If I prss the PDF button, the report shows fine, including the chart.Â

Â

Running the same report in iReport using HTML output works fine.Â

Â

Is this a bug?Â

Â

Regards,Â

Â

Herbert

 

 

 

 

By: T Kavanagh - tkavanagh

RE: Graph not showing Â

2006-05-10 14:36

Hi Herbert, Â

Â

I logged this as bug #1485979 in the bugs area of the site. Do you mind attaching your original jrxml? This would help in the debugging.Â

Â

Thanks,Â

Â

-Tony

 

 

 

By: Herbert Augustiny - haugusti

RE: Graph not showing Â

2006-05-10 22:22

Here it is:Â

Â

Btw: I'd love to get a prerelease version. I'm trying to build a pilot project at our company using jasperserver and if we have success with it, we might use jaspar for all kind of stuff later on. Unfortunately My due date is end of May...Â

Â

HerbertÂ

Â

<?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="RunDetails"Â

columnCount="1"Â

printOrder="Vertical"Â

orientation="Landscape"Â

pageWidth="842"Â

pageHeight="595"Â

columnWidth="782"Â

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.*" />Â

Â

<parameter name="Run" isForPrompting="false" class="java.math.BigDecimal">Â

<parameterDescription><![CDATA[Run Nummer]]></parameterDescription>Â

<defaultValueExpression ><![CDATA[new BigDecimal(609102)]]></defaultValueExpression>Â

</parameter>Â

<parameter name="StartZeit" isForPrompting="false" class="java.sql.Timestamp">Â

<parameterDescription><![CDATA[startzeit]]></parameterDescription>Â

<defaultValueExpression ><![CDATA[new java.sql.Timestamp(0)]]></defaultValueExpression>Â

</parameter>Â

<queryString><![CDATA[select * from V_TREND where run = $P{Run} and timestamp >= $P{StartZeit} order by timestamp]]></queryString>Â

Â

<field name="timestamp" class="java.sql.Timestamp"/>Â

<field name="oben" class="java.lang.Double"/>Â

<field name="mitte" class="java.lang.Double"/>Â

<field name="soll" class="java.lang.Double"/>Â

<field name="unten" class="java.lang.Double"/>Â

<field name="run" class="java.math.BigDecimal"/>Â

<field name="ofen" class="java.lang.Integer"/>Â

Â

<background>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</background>Â

<title>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</title>Â

<pageHeader>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</pageHeader>Â

<columnHeader>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</columnHeader>Â

<detail>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</detail>Â

<columnFooter>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</columnFooter>Â

<pageFooter>Â

<band height="0" isSplitAllowed="true" >Â

</band>Â

</pageFooter>Â

<summary>Â

<band height="510" isSplitAllowed="false" >Â

<xyLineChart>Â

<chart hyperlinkTarget="Self" >Â

<reportElementÂ

x="0"Â

y="0"Â

width="782"Â

height="510"Â

key="element-3"/>Â

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>Â

<chartTitle color="#000000" >Â

<titleExpression><![CDATA["Run 0" + $P{Run}]]></titleExpression>Â

</chartTitle>Â

</chart>Â

<xyDataset>Â

<dataset >Â

</dataset>Â

<xySeries>Â

<seriesExpression><![CDATA["Soll"]]></seriesExpression>Â

<xValueExpression><![CDATA[new Long(($F{timestamp}.getTime()-$P{StartZeit}.getTime())/60000)]]></xValueExpression>Â

<yValueExpression><![CDATA[$F{soll}]]></yValueExpression>Â

</xySeries>Â

<xySeries>Â

<seriesExpression><![CDATA["Oben"]]></seriesExpression>Â

<xValueExpression><![CDATA[new Long(($F{timestamp}.getTime()-$P{StartZeit}.getTime())/60000)]]></xValueExpression>Â

<yValueExpression><![CDATA[$F{oben}]]></yValueExpression>Â

</xySeries>Â

<xySeries>Â

<seriesExpression><![CDATA["Mitte"]]></seriesExpression>Â

<xValueExpression><![CDATA[new Long(($F{timestamp}.getTime()-$P{StartZeit}.getTime())/60000)]]></xValueExpression>Â

<yValueExpression><![CDATA[$F{mitte}]]></yValueExpression>Â

</xySeries>Â

<xySeries>Â

<seriesExpression><![CDATA["Unten"]]></seriesExpression>Â

<xValueExpression><![CDATA[new Long(($F{timestamp}.getTime()-$P{StartZeit}.getTime())/60000)]]></xValueExpression>Â

<yValueExpression><![CDATA[$F{unten}]]></yValueExpression>Â

</xySeries>Â

</xyDataset>Â

<linePlot >Â

<plot />Â

<categoryAxisLabelExpression><![CDATA["Dauer / Min"]]></categoryAxisLabelExpression>Â

<valueAxisLabelExpression><![CDATA["Temperatur / °C"]]></valueAxisLabelExpression>Â

</linePlot>Â

</xyLineChart>Â

</band>Â

</summary>Â

</jasperReport>Â

 

 

 

 

By: T Kavanagh - tkavanagh

RE: Graph not showing Â

2006-05-11 21:17

Thank you for the jrxml. I added it into the bug report. I'll check around and find out the right way to get you a pre-release (and find out exactly when the head source is due to be online).Â

Â

Cheers,Â

Â

-Tony

 

 

 

 

By: Herbert Augustiny - haugusti

RE: Graph not showing Â

2006-05-16 04:45

Do you have any idea when we can get a pre release?Â

Â

Herbert

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...