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 - Null points sometimes drawn when FastLine series has DrawAllPoints=false
Summary: Null points sometimes drawn when FastLine series has DrawAllPoints=false
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart for .Net 4.1.2017.10196
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 09:49 EST by yeray alonso
Modified: 2018-03-28 09:49 EDT (History)
0 users

See Also:
Chart Series: FastLine
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-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);