Page 1 of 1

concerning zoom and Trect

Posted: Tue Dec 13, 2011 9:33 am
by 16459037
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" ??

Re: concerning zoom and Trect

Posted: Tue Dec 13, 2011 8:05 pm
by 16459037
Hi,

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

sorry for the inconvinience

kind regards - HH Friis