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 314 - [TV52015608] Having a line with some thousand points and XValues.Order=loNone, if ...
Summary: [TV52015608] Having a line with some thousand points and XValues.Order=loNone...
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 16:48 EDT by yeray alonso
Modified: 2013-12-04 04:59 EST (History)
1 user (show)

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:37:59 EST
Having a line with some thousand points and XValues.Order=loNone, if you zoom several times, a vertical line is drawn over the chart.
Code to reproduce it:
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  Chart1.AddSeries(TLineSeries).FillSampleValues(10000);
  Chart1[0].XValues.Order:=loNone;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.SetMinMax(1000,1025);
end;
Forums topic:
http://www.teechart.net/support/viewtopic.php?f=3&t=12385&p=53400#p53400 [created:2011-06-10T15:48:40.000+01:00 reported by:yeray@steema.com reported in version:2011.03.30407 (TeeChart VCL)]
Comment 1 david berneda 2013-12-04 04:59:21 EST
Fixed.

The internal Line/Area/HorizLine series calculation to avoid pixel coordinates overflow maximum coordinates (Series.pas CalcPosLeftRight etc) has been improved and corrected.

A new check is done for every line segment to avoid painting it, if the line origin or ending XY coordinates are not inside (or do not cross) the Chart bounds rectangle.

Also fixed the above checking methods for horizontal series (HorizLine, etc)