Hi -
I'm populating a barseries with code that looks like this:
I'm populating a barseries with code that looks like this:
foreach(var week in auditstats)
{
barSeries.Add(
new DataPoint() { XValue = week.Week, YValue = week.AuditCount });
}
The x is calendar week and the y is a number. The problem comes when a week is missing from the underlying data. When all the weeks are represented I get an x axis that looks like this: 15 16 17
But when week 16 is missing I get an x axis that looks like this: 15 16.5
How can I fix this so that I get eiher only the data from the underlying set (15, 17) or get all the weeks whether or not they're in the underlying data (15, 16, 17)?