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 1028 - TFastLineSeries don't draw some points in different X position when DrawAllPointsStyle is daMinMax
Summary: TFastLineSeries don't draw some points in different X position when DrawAllPo...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 140923
Hardware: PC Windows
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-01 08:53 EST by yeray alonso
Modified: 2015-01-29 03:54 EST (History)
1 user (show)

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 2014-12-01 08:53:53 EST
In the following example, the chart is shown correctly until you zoom it clicking the button. At that moment, the point (25000, 1) isn't drawn any more.

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.Legend.Visible:=false;
  Chart1.View3D:=false;

  with Chart1.AddSeries(TFastLineSeries) as TFastLineSeries do
  begin
    for i:=0 to 50000 do
      case i of
        25000: Add(1);
        25002: Add(-1);
        else Add(0);
      end;

    DrawAllPoints:=false;
    DrawAllPointsStyle:=daMinMax;
  end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.SetMinMax(24950, 25050);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.Automatic:=true;
end;
Comment 1 narcís calvet 2015-01-26 07:35:56 EST
This works fine with TeeChart.NET:

    public Form1()
    {
      InitializeComponent();
      InitializeChart();
    }

    private void InitializeChart()
    {
      tChart1.Legend.Visible = false;
      tChart1.Aspect.View3D = false;

      Steema.TeeChart.Styles.FastLine fastline1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);

      for (int i = 0; i < 50000; i++)
      {
        switch (i)
        {
          case 25000: 
            fastline1.Add(1);
            break;
          case 25002:
            fastline1.Add(-1);
            break;
          default:
            fastline1.Add(0);
            break;
        }
      }

      fastline1.DrawAllPoints = false;
      fastline1.DrawAllPointsStyle = Steema.TeeChart.Styles.DrawAllPointsStyle.MinMax;
    }

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Axes.Bottom.SetMinMax(24950, 25050);
    }

    private void button2_Click(object sender, EventArgs e)
    {
      tChart1.Axes.Bottom.Automatic = true;
    }