Page 1 of 1

Marks values with BubbleChart

Posted: Fri Apr 03, 2009 8:40 am
by 9341766
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.

Posted: Fri Apr 03, 2009 9:37 am
by yeray
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.

Posted: Fri Apr 03, 2009 9:54 am
by 9341766
Yeah ! Nice !

Thank you very much.