deepthirohini86 Posted July 4, 2009 Share Posted July 4, 2009 Hi, I need to add more than one category expression and value expression for stacked Bar chart in ireport-nb-3.5.1.But there is no option in ireport-nb-3.5.1 to add more than one category expression and value expression,but it is having one option, Right click the chart area->chartdata->Details and we can add but it is asking all the inputs say for (Series Expression,Category Expression,Value Expression),etc and it is not doing what i need.But i need to achieve the following.For one Category Expression i need to have more than one Value Expression.Can any one suggest me how to achieve this. Regards,Rohini Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 5, 2009 Share Posted July 5, 2009 Hi rohini, In a chart these values - Series Expression,Category Expression,Value Expression are mandatory fields they are the fields that are to be given compulsorily. If you want to have one Value expression for one category expression, I will describe you one example, lets see you can understand or not,If you have one superset and subset of values, specify the superset in series expression and the subset in category expression and set the reset-group of chart to the category-expression. DNV Srikanth Link to comment Share on other sites More sharing options...
deepthirohini86 Posted July 6, 2009 Author Share Posted July 6, 2009 Hi Srikanth, Thanks for ur reply. I tried whatever u r telling but i am not get the reset-group as visible in the chart data. Actually i will tell you what structure of datas i am having,I am having a table like thisselect log_date,total,used,free from log_details; So in my stacked bar i want to show a bar with used with used part as 50 percent and the free with 20.So it needs to display stacked for used log and free log in a bar.I need to show like this, 70 | +---------+ | | | -> Free 20 | +---------+ | | | | | | -> Used 50 | | | | +----------+ ---------------------------------------------------- date I need to show the following the stacked bar,For this i search in this forums itself they are telling that we need to write the customized class.so kindly tell me whether the following can achieve with the normal ireport itself or we need to write the customized class. Thanks,Rohini Link to comment Share on other sites More sharing options...
deepthirohini86 Posted July 7, 2009 Author Share Posted July 7, 2009 I found this how to do this, i add like this in ireport-nb-3.5.0 click chartdata Add the series,category,value for the first part that is Used Expression, Then add the another series,category,value for the second part that is Free Expression. Now if u run it will show u the stacked bar. Regards, Rohini A.M 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