concerning zoom and Trect
Posted: 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" ??
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" ??