Limit X-Axis text label length

2 posts, 0 answers
  1. Oliver
    Oliver avatar
    33 posts
    Member since:
    Jan 2011

    Posted 25 Sep 2012 Link to this post

    Is there any way that I can do that?
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 27 Sep 2012 Link to this post

    Hello Oliver,

    By applying a Style on the X Axis label TextBlock you can control various properties such as Width, Font, FontSize and so on. Here you can find information exactly how to do that.

    You can use the radChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat string to specify the exact format of the X Axis labels. For more informations on the format expressions supported by the RadChart you can check this help topic.

    And if you want to hide the X axis labels altogether you can use the radChart.DefaultView.ChartArea. AxisX.AxisLabelsVisibility property.

    I hope this helps.

    Greetings,
    Petar Kirov
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top