It's a little piece of code called gdchart. I'm betting that it's actually by design,
to leave enough room for the legends.
The only ntop choice is to limit the # of segments.
The ntop code is in graph.c -- for example, look at hostTrafficDistrib(). Look around
410... after the array is loaded.
Add something like this:
quicksort(...);
if (num > 5) num = 5;
numLittles = 0;
for (i=num; i>=0; i--) {
if (p[i] < 0.025) numLittles++
}
if (numLittles > 3) num = num - numLittles + 3;
Of course it's not that simple since quicksort wants a struct with the two fields in
it and gdchart wants two separate arrays.
Good luck...
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
listuser
Sent: Tuesday, February 04, 2003 2:08 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: RE: [Ntop] Pie charts no readable when there are lots of
slices!
-----Original Message-----
From: "Burton M. Strauss III" <[EMAIL PROTECTED]>
> Your graphic is unreadable, but I can guess. One big
> # and lots of little ones??
Yes,
> The only thing to do is to limit the # of pie slices
> it's complex, because it needs to be both a maximum #
> of slices and a minimum slice value.
The actual bug that I saw was the
1. diameter of the pie gets reduced as the numnber of
slices increses
2. the center of the each slices gets farther and
farther away from the biggest slice.
One other solution is to "explode" the pie so that the radial distance between the
slices is incresed, this will make it more readable when their are lots of slices.
If you can tell me where exactly to look inthe code I can make a small try to fix this
:)
raj
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop