Page 1 of 1

Question about Donut (is it a bug ?)

Posted: Wed Jun 10, 2009 2:47 pm
by 9341766
Hi,
i'm using TeePro 7 fullsource.

Have a strange behaviour when I insert null values in no-3D Donut.
The center take the color of the null segment.
if the null segment is the last one, all segments take color of null segment.

Here you can see example :

Image

Image

Is there a bug or should i do something wrong ?
If it is a bug, Is there a fix that I can reproduce in my teechartsourcecode ?

Thanks

Re: Question about Donut (is it a bug ?)

Posted: Fri Jun 12, 2009 11:04 am
by yeray
Hi Wysu,

I think that the problem appears because you added 0 values but didn't set them as null values. Doing the following solves the issue for me here.

Code: Select all

for i:=0 to donut.Count-1 do if donut.PieValues[i] = 0 then donut.SetNull(i);

Re: Question about Donut (is it a bug ?)

Posted: Fri Jun 12, 2009 3:34 pm
by 9341766
Hi Yeray,

It seems to work fine.

It 's there other graphic type who needs this tricks with zero values ?

Many Thanks

Regards.

Re: Question about Donut (is it a bug ?)

Posted: Mon Jun 15, 2009 9:38 am
by yeray
Hi Wysu,

There are specific situations where customers like best lull points behavior, but also sometimes they prefer the points to be treated as 0 values. But right now I can't think on a really parallel problem to this.