pointX = chart.Series[
DateTime myMaxDate = maxDate;
I want to loop backwards from a specific date... help?
foreach (DataPoint dp
in chart.Series["Series1"].Points)
{
for (DateTime myDate = myMaxDate; myDate >= maxDate.AddDays(-10); myDate.AddDays(-1))
{
if (dp.XValue == myDate.ToOADate())
{
pointX = dp;
break;
}
}
}
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.