Jump to content
JasperReports Library 7.0 is now available ×

Variables in Chart


ktrinad

Recommended Posts

By: Fco Antonio - jofranco

Variables in Chart

2003-11-29 10:42

I have ten variables in a report.

 

Steps at design time:

 

1. I create a parameter of type java.awt.Image and name it i.e. myChart

2. I add an Imageelement to the report and set the

image expression to $P{myChart} and type to java.awt.Image

 

 

How to include the values of the variables in chart?

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Variables in Chart

2003-11-29 15:10

 

Please note that a variable is different from a parameter. You are talking about parametrs.

 

To pass a parameter to the report you must use the HashMap passed to the method fillReport of jasperreports library. This HashMap contains a list of pairs name/value, where name is the parameter name in the report, and the value an object (in your case the chart image).

 

Giulio

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