Page 1 of 1

Trend Function

Posted: Thu Apr 26, 2012 11:15 am
by 10047857
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.

Re: Trend Function

Posted: Fri Apr 27, 2012 9:25 am
by yeray
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.