Show Axis Labels for only begging and end of DateTimeContinuousAxis

3 posts, 1 answers
  1. Ernie S
    Ernie S avatar
    33 posts
    Member since:
    Apr 2014

    Posted 12 Feb 2015 Link to this post

    Hi.  I have an Area chart that uses an DateTimeContinuousAxis as its x-axis.  Since the number of points that feed it will change often and it is a small chart I would only like to label the "ends" of the axis.  In other words, show a label min and max of the x values and nothing in between.  This way, I can avoid the problem I am having in the attached screen capture.

    I can wire to the LayoutUpdated event and set the MajorStep to the difference in the ActualRange Min and Max but that will fire very often and was hoping for a better way.

    Thanks
    Ernie
  2. Answer
    Milena
    Admin
    Milena avatar
    201 posts

    Posted 16 Feb 2015 Link to this post

    Hi Ernie,

    You can take advantage of the MaximumTicks property of the DateTimeContinuousAxis: 
    <telerik:DateTimeContinuousAxis MaximumTicks="2">
    So, you will have only 2 labels of the axis. 

    I hope this information is helpful.

    Regards,
    Milena
    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. DevCraft banner
  4. Ernie S
    Ernie S avatar
    33 posts
    Member since:
    Apr 2014

    Posted 16 Feb 2015 in reply to Milena Link to this post

    Thank you Milena, that works perfectly!

    Ernie
Back to Top