vaidotasjuronis Posted September 22, 2014 Share Posted September 22, 2014 I am working on system based on jasperreports, and I have to generate a bar chart. I am using jasperreports 4.5.0, and have no option to use newer version, as this is the version installed at client side, and migrating to newer one would cause problems. So I made a bar chart, and here are some questions:1. In addition to having bars in a chart, I have to draw a straight horizontal line in the same chart representing some sort of average value. Is there any way to do this?2.The data for report is extracted from the database. The bar chart is using a dataset for its data. However, I need the label to contain some information from that dataset, but the label does not have access to the fields from that dataset. Can I get access to this dataset, or in general, any dataset, like some global one or something? Because right now there is only access to some "dummy" field. Link to comment Share on other sites More sharing options...
rajesh.sirsikar Posted September 22, 2014 Share Posted September 22, 2014 Hi,Refer to this blog of mine where I have explained how to use multi axes chart to display bar chart and a line chart with values.http://www.rajeshsirsikar.com/display-total-on-each-column-of-stacked-bar-in-jaspersoft-direct-approach/If you have further questions let me know in teh comment. Ill get back to you.ThanksRajesh Sirsikar 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