Bubbles radius units

TeeChart for ActiveX, COM and ASP
Post Reply
SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

Bubbles radius units

Post by SpongeBob » Tue Apr 04, 2006 9:37 pm

Hi,

I need your help.
Does anyone know what the unit is for the bubbles series radius?
It seems sensitive to the X and Y values.
Is there a way to make the radius the same regardless of X and Y values?
Thanks.

-T

SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

Post by SpongeBob » Wed Apr 05, 2006 4:24 pm

Please, anyone? I really need your help.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 11, 2006 9:44 am

Hi,

yes, sorry for delay, you could use :

Code: Select all

For i = 0 To TChart1.Series(0).asBubble.RadiusValues.Count - 1
TChart1.Series(0).asBubble.RadiusValues.Value(i) = 50
Next i
Also, an alternative is to use a Point Series instead, change its pointer style to Circle and set the desirable heigth and width.

SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

Post by SpongeBob » Tue Apr 11, 2006 4:49 pm

Thanks for the reply.
I guess my question was not clear.
I was able to set the radius to the same size for all bubbles in a series using
TChart1.GetSeries(0).GetAsBubble().AddBubble(xValue,yValue,100,someLabel,RGB(0,0,255));

What went wrong was when the yValue was too large (600,000,000), the bubbles all disappeared. Is there a way to make bubbles radius in pixels so that they will stay visible all the time?

My workaround is to set the radius to be some percentage of the Y value. I am wondering if there is a better way.

-T

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 18, 2006 9:02 am

Hi,

I'm afraid there's no way to set the radius in pixels. Other workaround could be to manually draw circles at every X,Y point on pointer repaint event.

Post Reply