Varying Dynamic X Axis Label Interval

6 posts, 1 answers
  1. Shilpa
    Shilpa avatar
    43 posts
    Member since:
    Dec 2015

    Posted 14 Dec 2015 Link to this post

    Hi,

    I want a Spline Series where a Categorical X axis Labels are plotted at different Gap widths( Different Label Interval).  Setting Label Interval Property is for whole Axis.But I want each label at different gaps. How do I Achieve this?

  2. Shilpa
    Shilpa avatar
    43 posts
    Member since:
    Dec 2015

    Posted 14 Dec 2015 Link to this post

    Someone please reply to this quest

     

  3. DevCraft banner
  4. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 17 Dec 2015 Link to this post

    Hi Shilpa,

    You can provide your own template for the labels through the LabelTemplate property of the axis. In it, you can add a TextBlock and bind its text with a converter. This way you will be able to define if you want to hide or show every single label, based on its value.

    Best regards,
    Ves
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Shilpa
    Shilpa avatar
    43 posts
    Member since:
    Dec 2015

    Posted 17 Dec 2015 Link to this post

    Hi Ves,

    Actually there is no label item in between the two labels ticks whose visibility I want to set. I have attached a picture of how the chart should look like.

  6. Answer
    Ves
    Admin
    Ves avatar
    2879 posts

    Posted 21 Dec 2015 Link to this post

    Hi Shilpa,

    I am afraid placing ticks at uneven intervals is not supported in our Chart for UWP.

    Best regards,
    Ves
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Shilpa
    Shilpa avatar
    43 posts
    Member since:
    Dec 2015

    Posted 21 Dec 2015 in reply to Ves Link to this post

    Hi Ves,

    Okay. Thanks for the clarification.

Back to Top
DevCraft banner