Jump to content
Changes to the Jaspersoft community edition download ×

PieChart value doesnt display key displays fine


aditi

Recommended Posts

Piechart displays fine when I executed a JRXML using IREport. I can see the different sections of the PieChart along with the names of each pie and its value.The results displayed are correct.

 

When I use the same jrxml in my java application the value of each pie in the piechart is not being displayed. The key (the name) of each pie is displayed fine and the chart itself is correct.

 

I ran the sample Pie3dChart which comes with Jasper Report demos changing the query and thae variables and the result is same. The values are not being displayed here.

 

I checked with JasperViewer passing the jasperPrint thinking that when I am exporting to HTML I am loosing the value(which i doubted) and its the same. The chart dispays fine. I can see the names of each pie but not the value.

 

<variable name="CONTENT_AREA_TOTAL" class="java.lang.Integer" resetType="Group" resetGroup="CONTENT_AREA" calculation="Count">

<variableExpression><![CDATA[$F{CONTENT_AREA}]]></variableExpression>

</variable>

 

<pie3DChart>

<chart evaluationTime="Report" hyperlinkTarget="Self">

<reportElement x="68" y="66" width="700" height="229"

key="element-1"/>

<box></box>

</chart>

<pieDataset>

<dataset ></dataset>

<keyExpression><![CDATA[$F{CONTENT_AREA}]]></keyExpression>

<valueExpression><![CDATA[$V{CONTENT_AREA_TOTAL}]]></valueExpression>

<labelExpression><![CDATA[$F{CONTENT_AREA}]]></labelExpression>

 

<sectionHyperlink >

</sectionHyperlink>

</pieDataset>

<pie3DPlot >

<plot />

</pie3DPlot>

</pie3DChart>

 

I spent a lot of time thinking that i may have missed a jar file or a style somewhere but I seem to have all the jar files.

 

Any help would be greatly appreciated!

 

Thanks

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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