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 225 - [TV52016483] Deppending on the Chart's width, the daMinMax DrawAllPointsStyle give...
Summary: [TV52016483] Deppending on the Chart's width, the daMinMax DrawAllPointsStyle...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-11 13:31 EST by yeray alonso
Modified: 2014-03-20 11:07 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 yeray alonso 2013-11-20 10:33:18 EST
Deppending on the Chart's width, the daMinMax DrawAllPointsStyle gives a strange result.
See the following example and resize the form to see how some "stairs" are drawn for the second series, while one would think it should be similar to the first series.
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var fast1, fast2: TFastLineSeries;
    cust1, cust2: TChartAxis;
    i: Integer;
begin
  Chart1.Align:=alClient;
  Self.Width:=820;
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;
  Chart1.MarginLeft:=7;
  Chart1.AllowPanning:=pmHorizontal;
  cust1:=TChartAxis.Create(Chart1);
  cust2:=TChartAxis.Create(Chart1);
  cust1.EndPosition:=48;
  cust2.StartPosition:=52;
  fast1:=Chart1.AddSeries(TFastLineSeries) as TFastLineSeries;
  fast2:=Chart1.AddSeries(TFastLineSeries) as TFastLineSeries;
  for i:=1 to 1440 do
  begin
    fast1.Add(100 * (i mod 2));
    fast2.Add(100 * (i mod 2));
  end;
  fast1.CustomVertAxis:=cust1;
  fast2.CustomVertAxis:=cust2;
  fast2.DrawAllPoints:=false;
  fast2.DrawAllPointsStyle:=daMinMax;
end;
Similar in .NET: TF02016484 [created:2013-01-11T13:31:56.000+01:00 reported by:yeray@steema.com reported in version:2012.07.121105 (TeeChart VCL)]