TPointSeries symbol styles

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
toreba
Newbie
Newbie
Posts: 4
Joined: Fri Nov 15, 2002 12:00 am
Location: UK

TPointSeries symbol styles

Post by toreba » Tue Sep 28, 2004 11:09 am

Hi,

The TPointSeries event 'OnGetPointerStyle' is very useful for distinguishing between points on the basis of some other attribute of the data. But why only pointer style? I'd like to be able to change other attributes such as the border or fill pattern. Is this possible?

Thanks

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

Post by Pep » Tue Sep 28, 2004 1:32 pm

Hi,

yes, you can do something like :

Code: Select all

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin

if (Sender = Series1) and (ValueIndex= 0 ) then begin
  Series1.pointer.HorizSize := 25;
  Series1.Pointer.VertSize := 25;
  Result := psCross
  end
else begin
  Result := psCircle;
  Series1.pointer.HorizSize := 5;
  Series1.pointer.VertSize := 5;
end;
end;
Or access directly to the Color of each point using the ValueColor property.

Post Reply