concerning zoom and Trect

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Friis
Newbie
Newbie
Posts: 11
Joined: Mon Apr 11, 2011 12:00 am

concerning zoom and Trect

Post by Friis » Tue Dec 13, 2011 9:33 am

Hi,

I would like to calculate average, standard deviation, meadian etc on a series. However, the calculation must be done only on a zoomed part of the series.

Narcís Calvet wrote to me in an email "RE: Concerning AverageTeeFunction - Customer Number: XXX" that I could do it by : "Regarding your technical question, the only solution I can think of is that when you zoom you add all points in the zoom rectangle to a temporary series. You can select points as explained in this thread: http://www.teechart.net/support/viewtop ... ion#p48204. With this temporary series you can then call TAverageTeeFunction.AddPoints(Source: TChartSeries) method."

I understand that comment but need to know how to obtain a TRect from a zoomed TChart? What is the function to obtain the TRect used in the link: "http://www.teechart.net/support/viewtop ... ion#p48204" ??

Friis
Newbie
Newbie
Posts: 11
Joined: Mon Apr 11, 2011 12:00 am

Re: concerning zoom and Trect

Post by Friis » Tue Dec 13, 2011 8:05 pm

Hi,

I'm using Charttest.ChartRect and that works just perfect...

sorry for the inconvinience

kind regards - HH Friis

Post Reply