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 2007

Summary: Null points sometimes drawn when FastLine series has DrawAllPoints=false
Product: .NET TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: TeeChart for .Net 4.1.2017.10196   
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:31 EST
ind 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 Java:
http://bugs.teechart.net/show_bug.cgi?id=2008

  FastLine fast1 = new FastLine(tChart1.Chart);

  fast1.Color = Color.Red;

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

  fast1.DrawAllPoints = false;
  //fast1.DrawAllPointsStyle = DrawAllPointsStyle.First;  // First line segment (from 500 to 2000) sometimes not drawn
  fast1.DrawAllPointsStyle = DrawAllPointsStyle.MinMax;   // Line segment from 2000 to 0 (a null point) sometimes being drawn
  fast1.TreatNulls = TreatNullsStyle.DoNotPaint;

  tChart1.Axes.Bottom.SetMinMax(-1000, 1000);
  tChart1.Axes.Left.SetMinMax(-200, 2500);

  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);