Trend Function

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Trend Function

Post by Metman » Thu Apr 26, 2012 11:15 am

Hi

I have a couple of questions about the trend function. I use it in a number of graphs to display a trend for temperatures in each month of the year and visually it works very well.

What I would like to do is extract the trend (the x and y values for the start and end points would be great) for each month and add them to a grid. I can't find an example of getting at the values that the trend function must calculate to display this line.

The other question I have - is can I use the clever bit of code that calculates the trend without displaying a graph - or is it dependent on a graph being displayed?

Bruce.

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

Re: Trend Function

Post by Yeray » Fri Apr 27, 2012 9:25 am

Hi Bruce,
Metman wrote:What I would like to do is extract the trend (the x and y values for the start and end points would be great) for each month and add them to a grid. I can't find an example of getting at the values that the trend function must calculate to display this line.
TeeChart functions have to be connected to a Series to be drawn. Then, when the function has been calculated, it "inserts" the values into the series XValues/YValues Valuelists. You can get the values from these lists.
Metman wrote:The other question I have - is can I use the clever bit of code that calculates the trend without displaying a graph - or is it dependent on a graph being displayed?
You can always make the associated series invisible (Visible:=false) but the function always needs the associated series for being calculated.
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

Post Reply