ktrinad Posted September 5, 2006 Share Posted September 5, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now