Jump to content
We've recently updated our Privacy Statement, available here ×

How to do a chart like this case ?


mobo12345

Recommended Posts

Hi,
   I want to do a pie chart. But I don't know how to do . Please give me a hint or sample
  This is my case.

   1. Suppose table_A has columns  a,b,c,datetime  such as
        a       b     c    datetime
       ----    ----  ----  ---------
        A1     B1    A11   2010-1-1
        A1     B2    A11   2010-1-1
        A2     B1    A11   2010-1-1
        A2     B2    A13   2010-1-1
        A3     B1    A11   2010-1-1
        A3     B2    A13   2010-1-1
        A1     B1    A11   2010-1-2
        A1     B2    A13   2010-1-2
        A2     B1    A11   2010-1-2
        A2     B2    A13   2010-1-2
        A3     B1    A13   2010-1-2
        A3     B2    A13   2010-1-2
            
   2. Given 2 parameters for time domain : start_time, end_time
       get data that satisfied time domain
      SELECT   a,b,c FROM table_A WHERE datetime >=$P{start_time}  AND datetime <=$P{end_time}
 3.  How to get 3 pie charts for above data and group by column a,b,c  that section key is  column a , value is counter

Thanks,
Mobo   

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...