ktrinad Posted August 31, 2006 Share Posted August 31, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now