iReportを使用して、6 つの異なるフィールドを持つ円グラフを表示しています。Bizflow Advreportと互換性があるため、3.1.4を使用します。iReport 3.1.4でグラフをプレビューすると、円グラフ/凡例/タイトルがすべて正しく表示されます。しかし、これをサイトに配置すると、タイトルしか表示されません。ファイルを5.0.1に移動しても、Web サイトとまったく同じように何も表示されません。
マージンとバンドのサイズをいじろうとしましたが、円グラフを正しく表示できないようです。
3.1.4から受け取った 2 つの異なるプレビューも添付しました。
もう1つは5.0.1から:
また、jrxmlファイルは次のとおりです。
<?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="report name" pageWidth="380" pageHeight="300" columnWidth="380" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
<queryString>
<![CDATA[Select CapabilityAreaName , SUM(ProjectedDevelopmentCost) as TotalProjectedDevelopmentCost, ROUND(100*SUM(ProjectedDevelopmentCost)/(SELECT SUM(ProjectedDevelopmentCost) FROM RequirementFunding),2)AS percentOfTotal
FROM Requirement
INNER JOIN CapabilityArea
ON Requirement.CapabilityAreaId = CapabilityArea.CapabilityAreaId
INNER JOIN RequirementFunding
ON Requirement.RequirementId = RequirementFunding.RequirementId
GROUP BY CapabilityAreaName]]>
</queryString>
<field name="CapabilityAreaName" class="java.lang.String">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="TotalProjectedDevelopmentCost" class="java.lang.Double">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="percentOfTotal" class="java.lang.Double">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<background>
<band/>
</background>
<title>
<band height="50">
<staticText>
<reportElement x="0" y="12" width="380" height="25"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[Project Development Cost By Capability Area]]></text>
</staticText>
<line>
<reportElement x="0" y="49" width="380" height="1"/>
</line>
<line>
<reportElement x="0" y="0" width="380" height="1"/>
</line>
</band>
</title>
<columnHeader>
<band height="250">
<pieChart>
<chart hyperlinkType="Reference">
<reportElement x="0" y="0" width="380" height="250"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<pieDataset>
<keyExpression><![CDATA[$F{CapabilityAreaName}]]></keyExpression>
<valueExpression><![CDATA[$F{TotalProjectedDevelopmentCost}]]></valueExpression>
<labelExpression><![CDATA[$F{percentOfTotal}.toString() + "% - $" + $F{TotalProjectedDevelopmentCost}]]></labelExpression>
<sectionHyperlink hyperlinkType="Reference">
<hyperlinkReferenceExpression><![CDATA["http://ess-bizflow:8080/bizflowadvreport/flow.html?_flowId=reportTinkerViewReportFlow&reportUnit=/reports/standard_reports/IR_D/AMOD/ActiveRequirementsCostTimeBreakdownTable&&CASelected=" + $F{CapabilityAreaName}]]></hyperlinkReferenceExpression>
</sectionHyperlink>
</pieDataset>
<piePlot>
<plot/>
</piePlot>
</pieChart>
</band>
</columnHeader>
</jasperReport>
この問題の原因を知っている人はいますか。必要に応じてファイルも提供できます。