i am using Q3 2011 reporting, chart. I am using a object data source. The x-axis is a set of dates (switched ot OADate).
I set autoscale to off at design time:
this.chart1.PlotArea.XAxis.AutoScale = false;
And i have tried to set MinValue and MaxValue in the constructor and the NeedsDataSource event.
chart1.PlotArea.XAxis.MinValue = new DateTime(2011, 1, 1).ToOADate();
chart1.PlotArea.XAxis.MaxValue = new DateTime(2012, 1, 1).ToOADate();
However, my x-axis ALWAYS shows the whole series, which starts from 9/1/2009. However, I only need to show a portion of the line, not the whole thing.
What setting do i have wrong?
All the answer i have found have been regarding AutoScale = false, but i have already set that.
I set autoscale to off at design time:
this.chart1.PlotArea.XAxis.AutoScale = false;
And i have tried to set MinValue and MaxValue in the constructor and the NeedsDataSource event.
chart1.PlotArea.XAxis.MinValue = new DateTime(2011, 1, 1).ToOADate();
chart1.PlotArea.XAxis.MaxValue = new DateTime(2012, 1, 1).ToOADate();
However, my x-axis ALWAYS shows the whole series, which starts from 9/1/2009. However, I only need to show a portion of the line, not the whole thing.
What setting do i have wrong?
All the answer i have found have been regarding AutoScale = false, but i have already set that.