anujapuri Posted April 8, 2008 Share Posted April 8, 2008 Hi I have to draw a chart that displays the month wise marketshare of various service providers. The DB has a table which stores month , service provider and marketshare. I am using a line chart to display months on X axis and Marketshare on Y axis. I am able to draw a seperate Line graph for each service provider using IReports but I need help to draw one line chart for all service providers Please see the attachmnet for the exampple chart that is to be drwan. Thanks in advance [file name=Chart_sample.doc size=49152] Link to comment Share on other sites More sharing options...
kschmitte Posted April 9, 2008 Share Posted April 9, 2008 Hi, each "line" needs its own "Category Series" (in Chart Properties - Chart Data - Details) regards, Kai Schmitte Link to comment Share on other sites More sharing options...
anujapuri Posted April 9, 2008 Author Share Posted April 9, 2008 Hi Thanks for your Help. I have tried creating Category series for each service provider but I need help to define the Value Expression for each Category series . I need where clause in the value expression for each caregory series for examle correspondg to serviceoperator xyz , the value expression for category series corresponding to opeartor xyz should be saying 'plot marketshare for this record from DB if serviceoperator="xyz" ' Please tell me how to define this value expression. Thanks for your help Link to comment Share on other sites More sharing options...
kschmitte Posted April 10, 2008 Share Posted April 10, 2008 This is a completly different issue ;) I would create a subreport with a query designed to return exactly the data I need in the chart - and then just put in the resluting fields. If needed you can pass parameters to your subreport (like your "YXZ"). Kai Link to comment Share on other sites More sharing options...
anujapuri Posted April 14, 2008 Author Share Posted April 14, 2008 Hi Thanks for your help. I will try exploring sub reorts as, Jasper and iReports are new to me . Thanks , I appreciate the timely replies. Link to comment Share on other sites More sharing options...
t3en4 Posted May 27, 2008 Share Posted May 27, 2008 hi anujapuri there. i cant display multiple lines or series in the same chart. i saw your chart image (and it makes just what i need) and i want to know if you can please make your .jrxml public o send it to my email valentina.trujillo@gmail.com thanks! :blink: Link to comment Share on other sites More sharing options...
kantheti.prajyodh Posted June 14, 2017 Share Posted June 14, 2017 Hi anujapuri/t3en4 I have the same requirement and a similar table. Got any Ideas or solutions. Can you help me out 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