Page 1 of 1

Single null value is visible

Posted: Thu Sep 28, 2006 10:13 am
by 9340566
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

Posted: Thu Sep 28, 2006 10:32 am
by narcis
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;