![]() | Steema Issues DatabaseNote: 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. |
| Summary: | [TV52014173] The smoothing function seems to calculate wrong values (at least the ... | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Other Components | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | major | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
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)]