Marks values with BubbleChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Wysu
Newbie
Newbie
Posts: 21
Joined: Wed Apr 27, 2005 4:00 am

Marks values with BubbleChart

Post by Wysu » Fri Apr 03, 2009 8:40 am

Hi,

Im using Tee7 Pro.

I draw a chart containing some bubble series. To avoid that my bubble series crush, I insert them like :

Code: Select all

TBubbleSeries(tmpSerie).AddBubble(i, (Bubblemaxvalue*2)*(j+1), myRadiusValue, myName);
(where bubblemaxvalue is the biggest radius value that I have)

then I format my left axis :

Code: Select all

Chart.LeftAxis.LabelStyle := talText;
But I found no options in TeeEditSeri to show Radius values in series marks.
smsValue: show Y value
smsLabel : show text
sms XValue : show XValue
smsXY : show X Y values

Is there any tricks ? How can I do ?

Regards.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Apr 03, 2009 9:37 am

Hi Wysu,

You could use OnGetMarkText event to customize the series marks:

Code: Select all

procedure TForm1.Series1GetMarkText(Sender: TChartSeries;
  ValueIndex: Integer; var MarkText: String);
begin
  MarkText := floattostr(Round((Sender as TBubbleSeries).RadiusValues[ValueIndex]));
end;
I hope this helps.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Wysu
Newbie
Newbie
Posts: 21
Joined: Wed Apr 27, 2005 4:00 am

Post by Wysu » Fri Apr 03, 2009 9:54 am

Yeah ! Nice !

Thank you very much.

Post Reply