DateTimeContinuousAxis show only one year

2 posts, 0 answers
  1. BEN SAID
    BEN SAID avatar
    1 posts
    Member since:
    Nov 2017

    Posted 17 Nov Link to this post

    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>

     

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1475 posts

    Posted 21 Nov Link to this post

    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.
Back to Top