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 1999 - NearestPoint tool considers Null points as valid points
Summary: NearestPoint tool considers Null points as valid points
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Chart Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: yeray alonso
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-23 07:13 EST by yeray alonso
Modified: 2018-02-23 07:41 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:13:27 EST
NearestPoint tool returns Null points as if they were visible.
Here a simple example:


		tChart1.getAspect().setView3D(false);
		tChart1.getLegend().setVisible(false);

		FastLine fast1 = new FastLine(tChart1.getChart());
		for (int i = 0; i < 2000; i++) {
			if (i == 1000)
				fast1.addNullXY(i, 200);
			else
				fast1.add(i, 100);
		}

		fast1.setTreatNulls(TreatNullsStyle.DONOTPAINT);

		tChart1.getAxes().getBottom().setMinMax(0, 2000);
		tChart1.getAxes().getLeft().setMinMax(0, 300);
		
		NearestPoint nearest1 = new NearestPoint(tChart1.getChart());
		nearest1.getPen().setColor(Color.red);
		nearest1.setSeries(fast1);