Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2001 - NearestPoint tool never considers Null points
Summary: NearestPoint tool never considers Null points
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-23 10:40 EST by yeray alonso
Modified: 2018-02-23 10:40 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2018-02-23 10:40:02 EST
NearestPoint tool doesn't highlight Null points when they are drawn (TreatNulls:=tnIgnore, as per default).

Here a simple example:

uses Series, TeeTools;

procedure TForm1.FormCreate(Sender: TObject);
var fast1: TFastLineSeries;
    nearest1: TNearestTool;
    i: Integer;
begin
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  fast1 := Chart1.AddSeries(TFastLineSeries) as TFastLineSeries;
  for i:=0 to 1999 do
  begin
    if (i = 1000) then
       fast1.AddNullXY(i, 200)
    else
       fast1.AddXY(i, 100);
  end;

  fast1.TreatNulls:=tnIgnore;

  Chart1.Axes.Bottom.SetMinMax(0, 2000);
  Chart1.Axes.Left.SetMinMax(0, 300);

  nearest1:=Chart1.Tools.Add(TNearestTool) as TNearestTool;
  nearest1.Brush.Clear;
  nearest1.Pen.Color:=clRed;
  nearest1.Series:=fast1;
end;

Similar bug in TeeChart Java:
http://bugs.teechart.net/show_bug.cgi?id=1999

Similar bug in TeeChart .NET:
http://bugs.teechart.net/show_bug.cgi?id=2000