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 657 - FastLine Stairs with Null points broken
Summary: FastLine Stairs with Null points broken
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.02060
Hardware: PC Windows
: --- regression
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 07:26 EDT by christopher ireland
Modified: 2014-03-24 07:26 EDT (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 christopher ireland 2014-03-24 07:26:23 EDT
Problem can be seen in the following code (Line series for comparison):

    Line series1;
    FastLine series2;

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      series1 = new Line(tChart1.Chart);
      series2 = new FastLine(tChart1.Chart);


      series1.LinePen.Width = 3;
      series1.Stairs = true;
      series1.InvertedStairs = true;
      series2.Stairs = true;
      series2.InvertedStairs = true;

      series2.TreatNulls = TreatNullsStyle.DoNotPaint;

      Random rnd = new Random();

      for (int i = 0; i < 20; i++)
      {
        double y = rnd.NextDouble();
        if (i > 8 && i < 12)
        {
          series1.Add(i, 0, Color.Transparent);
          series2.Add(i, 0, Color.Transparent);
        }
        else 
        { 
          series1.Add(i, y);
          series2.Add(i, y);
        }
      }
    }

    private void button1_Click(object sender, EventArgs e)
    {
      series1.InvertedStairs = !series1.InvertedStairs;
      series2.InvertedStairs = !series2.InvertedStairs;
    }

    private void button2_Click(object sender, EventArgs e)
    {
      series1.Stairs = !series1.Stairs;
      series2.Stairs = !series2.Stairs;
    }