sangi Posted June 4, 2008 Share Posted June 4, 2008 Hi I am trying to create a bar chart with multiple series. I have one category: IPTwo Series: count_this_week and count_last_week Category: IPSeries: this_week_count This is my data:IP this_week last_week1 18865410 167773542 18728264 167505533 10700694 106512584 16853818 146570705 12255185 108366286 13810980 135043867 10815512 90911448 8921797 86557629 10576552 884784710 11326149 9543523 Here I am attaching the image which is generated in excel. Can I get the same kind of report using iReport. I tried creating two series with one category but didnt succeed. :( Please help me. size=350]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/barchart.PNG Post edited by: sangi, at: 2008/06/04 15:45Post edited by: sangi, at: 2008/06/04 15:46 Link to comment Share on other sites More sharing options...
bklawans Posted June 5, 2008 Share Posted June 5, 2008 Try creating a categoryDataset with Code:<categorySeries> <seriesExpression>"This Week"</seriesExpression> <categoryExpression>$F{IP}</categoryExpression> <valueExpression>$F{this_week}</valueExpression></categorySeries><categorySeries> <seriesExpression>"Last Week"</seriesExpression> <categoryExpression>$F{IP}</categoryExpression> <valueExpression>$F{last_week}</valueExpression></categorySeries> The seriesExpression indicates the name of the series for a data point. The categoryExpression produces the x axis value, and the valueExpression produces the y axis value. -Barry Link to comment Share on other sites More sharing options...
sangi Posted June 5, 2008 Author Share Posted June 5, 2008 Hi, Thanks for your reply. I am using iReport to generate the reports. Where should I copy the above expression. Please guide me!!! Link to comment Share on other sites More sharing options...
sangi Posted June 5, 2008 Author Share Posted June 5, 2008 I am able to add one more series. Thanks for your help!!! :) Link to comment Share on other sites More sharing options...
newbo Posted November 19, 2013 Share Posted November 19, 2013 Where does this get added? I've looked in HTML 5 charts and in Charts Pro and don't see it. 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