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 2000 - NearestPoint tool considers Null points as valid points
Summary: NearestPoint tool considers Null points as valid points
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: TeeChart for .Net 4.1.2017.10196
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-23 07:47 EST by yeray alonso
Modified: 2018-02-23 07:51 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 07:47:09 EST
NearestPoint tool highlights Null points as if they were visible.
Here a simple example:

      tChart1.Aspect.View3D = false;
      tChart1.Legend.Visible = false;

      FastLine fast1 = new FastLine(tChart1.Chart);
      for (int i = 0; i < 2000; i++)
      {
        if (i == 1000)
          fast1.Add(i, 200, Color.Transparent);
        else
          fast1.Add(i, 100);
      }

      fast1.TreatNulls = TreatNullsStyle.DoNotPaint;

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

      NearestPoint nearest1 = new NearestPoint(tChart1.Chart);
      nearest1.Brush.Color = Color.Transparent;
      nearest1.Pen.Color = Color.Red;
      nearest1.Series = fast1;

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