pmaslov Posted October 11, 2006 Share Posted October 11, 2006 Hello!I would like to draw small one dimensional bars in each record of my report. Size of each bar would show a value of certain field. Has anyone done something like that? Please advice. size=135]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/mycharts.GIF Link to comment Share on other sites More sharing options...
lucianc Posted October 11, 2006 Share Posted October 11, 2006 You can write a static method that receives the field value and draws the bar on a BufferedImage. Then, you can use in the report an image element whose source expression calls the method with the current field value. HTH,Lucian Link to comment Share on other sites More sharing options...
pmaslov Posted October 13, 2006 Author Share Posted October 13, 2006 Thanks man! I thought I ll make gif servlet to generate images, but your method is better. 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