Page 1 of 1

TPointSeries symbol styles

Posted: Tue Sep 28, 2004 11:09 am
by 5892680
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

Posted: Tue Sep 28, 2004 1:32 pm
by Pep
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.