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 2008

Summary: Null points sometimes drawn when FastLine series has DrawAllPoints=false
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris, marc
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=10&t=16836#p74895
Chart Series: FastLine Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-03-02 09:49:40 EST
Find below a simple example reproducing the problems:

- Using DrawAllPointsStyle.FIRST, the first line segment (from 500 to 2000) sometimes is not drawn

- Using DrawAllPointsStyle.MINMAX, the line segment from 2000 to 0 (a null point) sometimes being drawn

Also reproduced in VCL:
http://bugs.teechart.net/show_bug.cgi?id=2006

Also reproduced in .NET:
http://bugs.teechart.net/show_bug.cgi?id=2007

  FastLine fast1 = new FastLine(tChart1.getChart());
  
  tChart1.getAspect().setView3D(false);
  tChart1.getLegend().setVisible(false);
            
  fast1.setDrawAllPoints(false);   
  //fast1.setDrawAllPointsStyle(DrawAllPointsStyle.FIRST);  // First line segment (from 500 to 2000) sometimes not drawn
  fast1.setDrawAllPointsStyle(DrawAllPointsStyle.MINMAX);  // Line segment from 2000 to 0 (a null point) sometimes being drawn
  fast1.setTreatNulls(TreatNullsStyle.DONOTPAINT);

  tChart1.getAxes().getBottom().setMinMax(-1000, 1000);
  tChart1.getAxes().getLeft().setMinMax(-200, 2500);
  tChart1.getAxes().getBottom().getGrid().setVisible(false);
  tChart1.getAxes().getLeft().getGrid().setVisible(false);
        
  fast1.add(500);
  fast1.add(2000);
  fast1.add(0, Color.TRANSPARENT);    
  fast1.add(0);
  fast1.add(1);
  fast1.add(0);
  fast1.add(0);
  fast1.add(0);
  fast1.add(0);
  fast1.add(0);
  fast1.add(0);
Comment 1 marc meumann 2018-03-23 11:54:58 EDT
now fixed in NET, porting changes to other environments
Comment 2 christopher ireland 2021-03-03 06:50:44 EST
Status changed to CONFIRMED, as the code added to the source causes a performance degradation as reported in this defect:
http://bugs.teechart.net/show_bug.cgi?id=2405

This code will have to be revised.
Comment 3 yeray alonso 2021-04-15 09:59:59 EDT
I'm closing this as the code is now in sync with TeeChart .NET.