Page 1 of 1

YValue Total per Page

Posted: Mon Oct 29, 2007 8:07 am
by 9642924
Hi there

Im searching for a solution for getting the Sum (total) for my YValues Collection per Page (the current page).

i tried with:

Code: Select all

g.Chart.Page.Chart.Series[0].YValues.Total;
But im getting the total of the whole chart and not only the current page.

Posted: Tue Oct 30, 2007 9:09 am
by narcis
Hi mueco,

You can try doing something like this:

Code: Select all

			double pageTotal = 0;

			for (int i = tChart1[0].FirstVisibleIndex; i <= tChart1[0].LastVisibleIndex; i++)
			{
				pageTotal += tChart1[0].YValues[i];
			}