This is a migrated thread and some comments may be shown as answers.

Limit X-Axis text label length

1 Answer 138 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 25 Sep 2012, 06:34 AM
Is there any way that I can do that?

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 27 Sep 2012, 05:19 PM
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.

Tags
Chart
Asked by
Oliver
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or