Different pointer style on a polar series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

Different pointer style on a polar series

Post by Herman » Tue Dec 20, 2005 11:38 am

Is it possible to set different point style for polar series?
Instead just all rectangle or all circle. How to do it ?
For exampe: I have 10 point.
I want to set a data point as circle and the other as triangle.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Dec 20, 2005 12:11 pm

Hi Herman,

Yes, you can do that using series GetPointerStyle event:

Code: Select all

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
  if (ValueIndex mod 2 = 0) then result:=psCircle
  else result:=psTriangle;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply