Single null value is visible

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Bert Kreisel
Newbie
Newbie
Posts: 23
Joined: Wed Jan 12, 2005 5:00 am
Location: Germany/Chemnitz
Contact:

Single null value is visible

Post by Bert Kreisel » Thu Sep 28, 2006 10:13 am

I add a single null value with AddNullXY to a LineSeries and the Point is visible! The points are correct invisible if I add a second null value.

Is it possilbe to get a bugfix for this?

Behalves Bert Kreisel

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Sep 28, 2006 10:32 am

Hi Bert,

Thanks for reporting. I could reproduce the issue here. This happens with line series with visible pointers and with point series as well. I've added the defect (TV52011780) to our bug list to be fixed for future releases.

In the meantime, a workaround is using the following code in the series OnGetPointerStyle event.

Code: Select all

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
  if ((Sender.Count=1) and (ValueIndex=0) and
      (Sender.ValueColor[ValueIndex]=clNone)) then
    result:=psNothing
  else
    result:=psRectangle;
end;
Another solution is only using an empty OnGetPointerStyle event:

Code: Select all

function TForm1.Series1GetPointerStyle(Sender: TChartSeries;
  ValueIndex: Integer): TSeriesPointerStyle;
begin
//
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply