Jump to content
We've recently updated our Privacy Statement, available here ×

Any example about making CHART programmaticly ?


bob007

Recommended Posts

 

Hi,

 

I'm making my reports programmaticly with JasperDesign.

Unfortunatly, I can't find any example about making a chart  report programmaticly ?

Is there any example about that ?

 

Like how to set the keyExpression and the valueExpression ?

 

Thanks,

Philippe

 



Post Edited by bob007 at 04/20/2009 19:25
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

JasperReports doesn't include any sample code that does this.  However, you can look into the sources of net.sf.jasperreports.engine.xml.JRXmlDigesterFactory, follow the digester rules applied to certain JRXML patterns and see the calls the JR makes internally when parsing a JRXML.

For instance, searching for keyExpression reveals that this expression is set by calling net.sf.jasperreports.charts.design.JRDesignPieSeries.setKeyExpression.

Regards,

Lucian

Link to comment
Share on other sites

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