Jump to content

Pie chart: grouping less significant results


Pedja

Recommended Posts

Hi,

 

I have a query that returns top 40 results based on some criteria, and they are sorted by percentage, something like this:

 

30%

18%

12%

12%

5%

.

.

.

.

 

The pie chart shows all 40, and it is very unreadable. Is it possible to set the chart to show only results >10% (or top 5 results), and to group all the other results to one pie slice ("Other", for example) with the sum of all of their values as the slice value? I could do this in my query, but I'm interested if this is possible with JFreeChart?

 

Thanks,

Pedja

Link to comment
Share on other sites

  • 6 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 Hi,

I'm dealing with the same problem.

Did you find any way to solve this ?

 

You said you could do this in your query, i don't really see how , because with the LIMIT clause, you would lose the real 100%-total and your pie chart will be wrong.

Thanks,

 

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