DateTimeContinuousAxis shows categories since update

3 posts, 1 answers
  1. Martin
    Martin avatar
    34 posts
    Member since:
    Oct 2012

    Posted 09 Feb 2015 Link to this post

    Hi,

    since my last update the DateTimeContinuousAxis changed the view and I'm confused how to get the old view back.

    This is what our X axis looked before: https://dl.dropboxusercontent.com/u/55589036/Pictures/Screenshots/20150108152425.png
    And now: https://www.dropbox.com/s/0f961s1on7t0fus/Screenshot%202015-02-09%2015.24.10.png?dl=0

    I'm using:             

    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:DateTimeContinuousAxis x:Name="dateTimeContinuousAxis" LabelFitMode="None" LabelFormat="HH:mm:ss" />
    </telerik:RadCartesianChart.HorizontalAxis>

    Also the new version added space left and right of it, I want to get rid of. I think this connects to my main problem.


    How can I solve this to get my old X axis view back?
  2. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 10 Feb 2015 Link to this post

    Hi Martin,

    The plot position of the labels in the DateTime and the categorical axes of the chart is controlled through their PlotMode property. The default PlotMode of the DateTimeContinuousAxis is OnTicks and the end result should look like in the "before" picture from your post. The "now" picture looks like the axis has set its PlotMode property to BetweenTicks.

    Without your implementation I cannot be sure what is causing the axis to plot the labels between the ticks, but you can try to set to PlotMode of the axis to OnTicks (or OnTicksPadded) and let me know if this helps.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Martin
    Martin avatar
    34 posts
    Member since:
    Oct 2012

    Posted 10 Feb 2015 in reply to Martin Link to this post

    The default PlotMode seems to be BetweenTicks at me. Setting OnTicks in the XAML explicit solved the issue. Thank you.
Back to Top