CategoricalAxis distance from label

4 posts, 0 answers
  1. Ali
    Ali avatar
    2 posts
    Member since:
    Dec 2015

    Posted 30 Dec 2015 Link to this post

    Hi.

    How can i change the distance between a CategoricalAxis and its label ?

    ( my chartview have two horizontalAxis. the top one have this gap problem )

    CategoricalAxis gregorianAxis = new CategoricalAxis();
    gregorianAxis.LabelFitMode = AxisLabelFitMode.Rotate;
    gregorianAxis.LabelRotationAngle = 60;
    gregorianAxis.ClipLabels = false;
    gregorianAxis.VerticalLocation = AxisVerticalLocation.Top;
    mySerie.HorizontalAxis = gregorianAxis;

  2. Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 30 Dec 2015 Link to this post

    Hello Ali,

    Thank you for writing.

    By design, labels are positioned close to their axis. From the attached image I understand that you have moved the horizontal axis to the middle of the chart and you have also set its VerticalLocation to be Top. The desired behavior in this scenario would be that the labels be positioned on top of the horizontal axis in the middle.

    The offset position to the top of the chart is an issue and I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item. I have also updated your Telerik points.

    Due to its complexity, a proper workaround is not available. I can suggest you either setting the LabelFitMode to MultiLine or the VerticalLocation to Bottom.

    I hope this information was useful. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ali
    Ali avatar
    2 posts
    Member since:
    Dec 2015

    Posted 31 Dec 2015 in reply to Hristo Link to this post

    Thanks for your answer.

    I use MultiLine for LableFitMode property if any one have the same problem.

    Regards.

  5. Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 04 Jan Link to this post

    Hi Ali,

    Thank you for writing back.

    I am glad that the setting the MultiLine property to true fits your local set up.

    Please let me know if you need additional assistance on that matter.

    Regards,
    Hristo Merdjanov
    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
Back to Top