Jump to content
Changes to the Jaspersoft community edition download ×

Chart With XML Source

Recommended Posts

By: Lucho - rebprotizer

Chart With XML Source

2006-06-13 05:28

I have an XML datasource and i would like to cretae a pie chart.

I have 2 fields : city (String) and clients (Long)

example of the XML file :

















Key expression : $F{city}

Value expression : $F{clients}

Label expression : $F{city}+" : "+$F{clients}


When i compile with iReport i have no error. But when i'm using my java program in order to generate a PDF or Excel report, I have this error :

net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :

Source text : $F{nbClients}


So, I have tried to replace the value expression by : Long.getLong($F{clients})

and the type of the field clients by String


I have no error but no data...


The same report is working with a DBMS and CSV datasource.


Can you help me please ?


Thank you for your help.



Link to comment
Share on other sites

  • Replies 0
  • 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...