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

How to set y axis label width

1 Answer 186 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomislav
Top achievements
Rank 1
Tomislav asked on 09 Mar 2011, 09:26 AM
Hi...

I have y-axis labels populated from the database and my chart is bound to one of the SQL data source field. The problem is my value labels that are populated from the database field are not fully shown. I would like to set plot area property that would change the width between the left chart margin and left plot area margin(de facto,area where labels are written.) Also, if a label is too wide to fit i would like to break in new line, and adjusting the content of the chart.For example, if my label value is "Who let the dog out" and it doesnt fit in one row, i would like it to be shown as :

Who let
the dog out

 I have attached the example as well.I would like to achieve through designer properties setting, instead of programmatically setting the values.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 10 Mar 2011, 10:36 AM
Hello Tomislav,

In order to allow the control to internally handle these settings, you can set AutoLayout = true. Alternatively, you can manually configure the margins as shown here:

http://www.telerik.com/help/reporting/understandingelementsmargins.html

I hope these suggestions get you started properly.

Greetings,
Yavor
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Tomislav
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or