Page 1 of 1

TLineSeries Hide (or dont paint) particular pointers

Posted: Thu Mar 12, 2009 8:48 pm
by 10548769
Hi, im working with Delphi 2k7 and TeeChart 8.04 and i would like to know if the TLineSeries with Pointers visible can hide some pointers. I tried the option to Color Each Point and use the color clNone. Seems to work, but a lil prob there is that the Line connecting each point is not draw too. If you guys got a quick solution for that ill take it, otherwise ill have to make a new series kind and add the option for ValuePointerVisible[Index] and that doesnt looks very funny to do so.

Posted: Fri Mar 13, 2009 10:17 am
by yeray
Hi GoToXY,

Using OnGetPointerStyle seems to work fine. For example, to hide the 6th point:

Code: Select all

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
  if ValueIndex = 5 then
    Result := psNothing
  else
    Result := psRectangle;
end;

Posted: Fri Mar 13, 2009 12:48 pm
by 10548769
Works perfectly. Thanks a lot. I work nearly everyday with TeeChart and the more I use it, the more i can see it's well programmed. The only shame, for me, is that i dont know it as much as i would heheheh.

Thanks again for your support, you guys rock!

Posted: Fri Mar 13, 2009 2:25 pm
by yeray
Hi GoToXY,

It's a pleasure being helpful. And I hope that your opinion on TeeChart won't change with your day-to-day learning. ;)