Jump to content

naresh126

Recommended Posts

 Hi everyone,

                I am creating  reports in Jasper ireports and using the generated Jasper file in my servlet to generate reports. My report contains combination of charts like pie chart,bar graphs, meter and etc.I was wondering whether i can generate pie charts with dynamic series?i mean if my department table is updated with a new department then the number of sectors(series) in my pie should increment by 1 with the respective department values.If this is really possible, how do i do it.

Thank in Advance.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi lucianc,

                 Thanks for your reply.As I am new to this Jasper Reports i dont know how to pass the key expression for the chart.I have seen the examples pie charts in  demo/samples/charts in the JR distribution, but i didnt not really understand how they did it and also am not familiar with all the options in the ireports.

          Could you please tell me how to do that step-by-step (with some snapshots if possible) if you have time.

I have a department table and it has payments in it.I need to get the departments from the database dynamically and add sum of all payments in each department as a series in the pie.

 

Thanks in Advance.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...