TLineSeries Hide (or dont paint) particular pointers

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
GoToXY
Newbie
Newbie
Posts: 81
Joined: Thu Apr 03, 2008 12:00 am

TLineSeries Hide (or dont paint) particular pointers

Post by GoToXY » Thu Mar 12, 2009 8:48 pm

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.

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

Post by Yeray » Fri Mar 13, 2009 10:17 am

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;
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

GoToXY
Newbie
Newbie
Posts: 81
Joined: Thu Apr 03, 2008 12:00 am

Post by GoToXY » Fri Mar 13, 2009 12:48 pm

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!

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

Post by Yeray » Fri Mar 13, 2009 2:25 pm

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. ;)
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

Post Reply