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

DateTimeContinuousAxis show only one year

1 Answer 64 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
BEN SAID
Top achievements
Rank 1
BEN SAID asked on 17 Nov 2017, 11:05 AM

Hi everybody

I am trying to Create a Chart that show bar series on a long period 2years or more . And I want that theStep unit to be month. the problem is that the graph don't show more than 12 months ? like in the next document

thi is my used code
thanks for help

1.<telerik:RadCartesianChart.HorizontalAxis>
2.                    <telerik:DateTimeContinuousAxis GapLength="0.9"
3.                                                    LabelFormat="MMMyy"
4.                                                    MajorStep="1"
5.                                                    MajorStepUnit="Month"
6.                                                    PlotMode="OnTicks" />
7.                </telerik:RadCartesianChart.HorizontalAxis>

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 21 Nov 2017, 04:08 PM
Hello Ben,

Without your setup and data I cannot be sure what is going on. But, my suggestion is to set the Minimum and Maximum properties of the axis so that they match the range you expect. Note that by default the chart axis will calculate its range based on the plotted data. This is why the last 3 dates you expect are not presented on the axis.

Can you please test the Minimum and Maximum properties and let me know how it goes? If this doesn't help I would ask you to send me some runnable code that demonstrates your set up and also a drawing of the expected result (with the bars). This way I can think of a suitable solution for your scenario.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ChartView
Asked by
BEN SAID
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or