![]() | Steema Issues DatabaseNote: 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. |
| Summary: | NearestPoint tool considers Null points as valid points | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Chart Tools | Assignee: | yeray alonso <yeray> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=10&t=16836 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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);