TLineSeries and points

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Andrew
Newbie
Newbie
Posts: 11
Joined: Thu Feb 06, 2003 5:00 am

TLineSeries and points

Post by Andrew » Tue May 11, 2004 2:08 am

Hello,

Is there any way to turn on points for just a few values, rather than the whole series? I want a certain section of my chart to stand out. Or how about changing the line type for a particular section of points?

Cheers

Andrew

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue May 11, 2004 12:15 pm

Hi, Andrew.

Perhaps you could use line series OnGetPointerStyle event for filtering. The following code works fine:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  line1.FillSampleValues(20);
  line1.Pointer.Visible := True;
end;

function TForm1.line1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
  // show 2nd and 13th point pointer only
  if (ValueIndex = 1) or (ValueIndex = 12) then Result := psCircle
  else Result := psSmallDot;
end;
Marjan Slatinek,
http://www.steema.com

Post Reply