Problem with Smoothing function

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
johnnix
Newbie
Newbie
Posts: 13
Joined: Wed Nov 05, 2014 12:00 am

Problem with Smoothing function

Post by johnnix » Fri Mar 06, 2015 5:32 pm

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
Attachments
Sample.zip
(2.6 KiB) Downloaded 764 times

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with Smoothing function

Post by Yeray » Mon Mar 09, 2015 10:02 am

Hello,

Could you please tell us with what TeeChart version this sample behaves different?
Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

johnnix
Newbie
Newbie
Posts: 13
Joined: Wed Nov 05, 2014 12:00 am

Re: Problem with Smoothing function

Post by johnnix » Mon Mar 09, 2015 10:45 am

Hello,

I am using the latest TeeChart 2015.14.150120. If I use another series type like Line series it works ok.

Regards

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with Smoothing function

Post by Yeray » Tue Mar 10, 2015 3:45 pm

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

johnnix
Newbie
Newbie
Posts: 13
Joined: Wed Nov 05, 2014 12:00 am

Re: Problem with Smoothing function

Post by johnnix » Tue Mar 10, 2015 5:09 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problem with Smoothing function

Post by Narcís » Wed Mar 11, 2015 7:57 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

johnnix
Newbie
Newbie
Posts: 13
Joined: Wed Nov 05, 2014 12:00 am

Re: Problem with Smoothing function

Post by johnnix » Wed Mar 11, 2015 12:53 pm

Hello Narcis,

Thank you very much for the clarification and quick answers.

Regards

Post Reply