I'm using a RadHtmlChart
based on HTML5 from telerik. I'm using a Pie Chart, and I want to display the method's values. How should I save the values -- maybe as a list? It shouldn't have a big impact on the method itself, because I need this method for some report stuff.
public double GetBookedVacation(int year)
{
int counter = 0;
if (this.AnnualVacations.Any())
{
foreach (HtVacationDay vacationDay in HtVacationDays)
{
foreach (DateTime vacationDayDate in vacationDay.GetDates())
{
if (vacationDayDate.Year == year)
{
counter++;
}
}
}
}
return counter;
}
Thanks for help and fast answer.