Jump to content
JasperReports Library 7.0 is now available ×

Pie Chart from XML Datasource Problem


2006 IR Open Dicussion

Recommended Posts

By: ka4sri_1999 - ka4sri_1999

Pie Chart from XML Datasource Problem

2006-04-25 04:19

Hi,

 

I need help with a pie chart developmennt from a XML

datasource. For example if my xml is:

 

<CreditUtilization>

<A>2500</A>

<B>3500</B>

</CreditUtilization>

 

I need help in drawing a pie chart between A and B.

Please help. Any pointers in this regard will be very

helpful.Thanks.

 

Thanks & Regards

Subashree

 

 

 

 

By: ka4sri_1999 - ka4sri_1999

RE: Pie Chart from XML Datasource Problem

2006-04-27 20:58

Hi,

 

I solved this issue by modiying the input xml to have the structure :

 

<CreditUtilization>

<A>2500</A>

<B>3500</B>

</CreditUtilization>

<CreditUtilization>

<A>3500</A>

<B>3500</B>

</CreditUtilization>

 

 

Note that the second set of <CreditUtilization> has the value of <A> equal to value of <B>.

 

Then, I gave the Key Expression as

$F{FieldNameforA}

and alue Expression as

$F{FieldNameforA}

 

Now I get a piechart between <A> and <B>.

 

This is the only way I could find to resolve the issue.

 

Hope this helps.

 

Thanks & Regards

Subashree

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