This is a migrated thread and some comments may be shown as answers.

chart deson't pick up xaxis minValue and MaxValue

3 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 20 Dec 2011, 05:40 PM
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.

3 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 21 Dec 2011, 05:34 PM
Hello Robert,

The axis items only specify what will show as labels. The data depends entirely on what you receive from the data source. The functionality you want to achieve is filtering.
You can review our Product Line Sales demo which implements data filtering for the charts.

Kind regards,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Robert
Top achievements
Rank 1
answered on 26 Dec 2011, 11:24 PM
just to clarify. i did a fitler and the a-xis is fitlered as expected. thanks.


however, a question. on the wpf radChart, even though the chart may havea a xis min and max vlaue, the line can continue to go in either direction to show that there is more data in the seires.

But, with a reporting filter, the line is completely chopped. it does not visually instruct the user that there could be more data to the left or right of the displayed chart.

is this by design? does chart reporting do what the wpf radchart does with the min/max value of x-axis?

thanks for the info.
0
Elian
Telerik team
answered on 27 Dec 2011, 05:04 PM
Hi Robert,

The report chart item only displays the data you pass to it (after filtering) and simply cuts the rest, no hints. 

All the best,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Elian
Telerik team
Robert
Top achievements
Rank 1
Share this question
or