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 170 - [TV52014173] The smoothing function seems to calculate wrong values (at least the ...
Summary: [TV52014173] The smoothing function seems to calculate wrong values (at least...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 11:21 EDT by yeray alonso
Modified: 2013-11-20 10:01 EST (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:01:35 EST
The smoothing function seems to calculate wrong values (at least the xvalues) in some cases. Maybe when one sources point is far from the other points:
uses Series, TeeSpline;

procedure TForm1.FormCreate(Sender: TObject);
var Series1:TPointSeries;
 Series2: TLineSeries;
 Function1: TSmoothingFunction;
begin
 Chart1.View3D := false;

 Series1 := TPointSeries.Create(self);
 Chart1.AddSeries(Series1);

 Series1.XValues.DateTime := True;
 Series1.AddXY(StrToDate('19/5/2000'), 1);
 Series1.AddXY(StrToDate('3/6/2009'), 22);
 Series1.AddXY(StrToDate('6/5/2009'), 33);

 Series2 := TLineSeries.Create(Self);
 Chart1.AddSeries(Series2);

 Function1 := TSmoothingFunction.Create(Self);
// Function1.Interpolate:=False;

 Series2.SetFunction(Function1);
 Series2.DataSources.Add(Series1);
end;
Forums topic:
http://www.teechart.net/support/viewtopic.php?p=40245#40245 [created:2009-05-21T10:21:16.000+01:00 reported by:yeray@steema.com reported in version:8.04 (TeeChart VCL)]