Changing point sizes

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
glazer
Newbie
Newbie
Posts: 10
Joined: Tue Nov 13, 2007 12:00 am

Changing point sizes

Post by glazer » Tue Jun 10, 2008 9:26 am

I have a chart on which I have plotted say 20 points using a pointseries. Each point is plotted as a circle of a certain size. How can I arrange it that every odd point is largere than the even points? When I change the size of one point in the series is automatically affects all the points.
Mike

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

Post by Yeray » Tue Jun 10, 2008 10:05 am

Hi Mike,

You could use OnGetPointerStyle event to change every pointer size. You could do something like following;

Code: Select all

var OddSize, EvenSize: Integer;

//...

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
  if ValueIndex mod 2 = 0 then
  begin
    Series1.Pointer.HorizSize := OddSize;
    Series1.Pointer.VertSize := OddSize;
  end
  else
  begin
    Series1.Pointer.HorizSize := EvenSize;
    Series1.Pointer.VertSize := EvenSize;
  end;

  Result := psCircle;
end;
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

glazer
Newbie
Newbie
Posts: 10
Joined: Tue Nov 13, 2007 12:00 am

Chaning point size

Post by glazer » Tue Jun 10, 2008 10:15 am

Many thanks. I will give it a try
Mike

Post Reply