Page 1 of 1

Bug in Smooth function?

Posted: Wed May 12, 2010 11:28 am
by 10050699
Hello.

I'm playing with the VCL 2010 demo and I've found a weird behaviour of the Smooth function. It works properly if I define all series and smooth functions (related to those series) using the "Edit chart" option. But if I define series and functions at my source code (exactly the same series and properties as I did before), the smooth functions are not smooth at all. They follow the reference series, but have big deviations (see the attached file, please).
SmoothFunction.jpg
SmoothFunction.jpg (206.24 KiB) Viewed 6235 times
Is this fixed at the release version?, because we were planning to upgrade to use it.

Thanks in advance,
MarĂ­a

Re: Bug in Smooth function?

Posted: Wed May 12, 2010 1:06 pm
by 10050699
Forgot to mention... I'm using C++Builder 2010 and Windows 7.

Re: Bug in Smooth function?

Posted: Wed May 12, 2010 4:15 pm
by yeray
Hi Maria,

I can see that having some points very near in XValue (in comparison with the other points proximity) the smoothed seems to give an strange behaviour.

Delphi example:

Code: Select all

uses Series, TeeSpline;

var Series1, Series2: TLineSeries;
    TeeFunction1: TSmoothingFunction;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  Series1:=Chart1.AddSeries(TLineSeries.Create(self)) as TLineSeries;
  Series1.AddXY(0,100);
  Series1.AddXY(100,130);
  Series1.AddXY(100.25,105);
  Series1.AddXY(200,155);

  Series2:=Chart1.AddSeries(TLineSeries.Create(self)) as TLineSeries;
  TeeFunction1:= TSmoothingFunction.Create(self);
  Series2.SetFunction(TeeFunction1);
  Series2.DataSource:=Series1;
end;
I've added it to the defect list to be revised in future releases (TV52014879).

Re: Bug in Smooth function?

Posted: Tue Aug 31, 2010 5:06 pm
by 16456689
Have we found a solution for this issue yet? I'm encountering the same problem...

Re: Bug in Smooth function?

Posted: Wed Sep 01, 2010 4:25 pm
by yeray
Hi,

I'm afraid not yet. I've incremented it's priority.