Page 1 of 1
Problem with Smoothing function
Posted: Fri Mar 06, 2015 5:32 pm
by 16570614
Hello,
I am using the latest 2015 version and it looks like the smoothing function does not perform any more when working with TPoint series? Attached is a simple example, if I click the button I get a strange straight line only.
Regards
Re: Problem with Smoothing function
Posted: Mon Mar 09, 2015 10:02 am
by yeray
Hello,
Could you please tell us with what TeeChart version this sample behaves different?
Thanks in advance.
Re: Problem with Smoothing function
Posted: Mon Mar 09, 2015 10:45 am
by 16570614
Hello,
I am using the latest TeeChart 2015.14.150120. If I use another series type like Line series it works ok.
Regards
Re: Problem with Smoothing function
Posted: Tue Mar 10, 2015 3:45 pm
by yeray
Hello,
Try this:
Code: Select all
type
TSeriesAccess=class(TChartSeries);
procedure TForm1.Button1Click(Sender: TObject);
begin
TSeriesAccess(Chart6[1]).SetHorizontal;
Chart6[1].FillSampleValues(20);
teefunction1.ReCalculate;
end;
Re: Problem with Smoothing function
Posted: Tue Mar 10, 2015 5:09 pm
by 16570614
Hello Yeray,
Thank you very much for looking into this. I implemented your suggestion in my app and it works ok but I need to ask, is this a temporary fix or this is by design the way point series should be used with smoothing function?
Regards
Re: Problem with Smoothing function
Posted: Wed Mar 11, 2015 7:57 am
by narcis
Hello johnnix,
This is by design. TPointSeries is a vertical series while, in your example, you are using a THorizLineSeries, which is a horizontal series. Given that, you need to make the point series to be horizontal so it can work with an horizontal line series.
Re: Problem with Smoothing function
Posted: Wed Mar 11, 2015 12:53 pm
by 16570614
Hello Narcis,
Thank you very much for the clarification and quick answers.
Regards