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

X Axis labels in my Grpah is going out of the grid

3 Answers 23 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ramya
Top achievements
Rank 1
Ramya asked on 14 Apr 2011, 12:18 PM
Hello ,
The X Axis labels in my grpah is going out of the grid which is holding it, making it look ugly. Do you have any fix for it? is the z-index of the X Ais Labels the highest?

3 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 15 Apr 2011, 10:29 AM
Hi Ramya,

Please try to add padding to your Chart Area as shown in this example. This will fix your problem.

<telerik:ChartArea Padding="5,10,20,5" LabelFormatBehavior="None" LegendName="PrimaryLegend" FontSize="10">

Greetings,
Sia
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Ramya
Top achievements
Rank 1
answered on 27 Apr 2011, 01:26 PM
Thanks for the reply. But my problem is still not solved.
If I have a smaller graph whose x-axis has lots of text in it, and i am facing two problems,
1. the text is overlapping on one another.
2. the text is going out of the container.
I have attached images which will show it more clearly. Please let me know how to make the text look clean?
0
Evgenia
Telerik team
answered on 02 May 2011, 08:03 AM
Hi Ramya,

The issues you are facing are both caused by the fact that your labels are too clumsy. To be able to provide additional distance between the Ticks you may use our TicksDistance property as shown in this help article.
Additionally you may try setting different values to the StepLabelLevelHeight property (described in the help article mentioned above) to provide different height for the labels. 

I hope this is helpful.

Greetings,
Evgenia
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Ramya
Top achievements
Rank 1
Answers by
Sia
Telerik team
Ramya
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or