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

Axis Labels display issue

2 Answers 86 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Krishna Samaga
Top achievements
Rank 1
Krishna Samaga asked on 19 Jul 2010, 08:14 AM
Hi,

I have a telerik radchart created dynamicaly in my web page. I have made the series orientation of the graph to Horizontal so that i get more space to display the x-axis labels in the graph. My axis label texts are quite lengthy & i am not able to display them to the full. After few charecters, they are getting displayed with "..." as shown in attached image-1. I want to display the complete text for labels. The complete text is shown in Image-2.

Also i dont want any negetive numbers in y-axis. Meaning i want the start value to be Zero. I tried setting minimum value=0 but was of no help :(.

Please help me fixing these issues ASAP.

Thanks,
Krishna Samaga B.

2 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 22 Jul 2010, 09:01 AM
Hello Krishna Samaga,

You need these two lines of code to achieve the desired effect:
RadChart1.AutoLayout = true;
RadChart1.PlotArea.YAxis.VisibleValues = ChartAxisVisibleValues.Positive;

Best wishes,
Velin
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
Krishna Samaga
Top achievements
Rank 1
answered on 30 Jul 2010, 06:39 AM
Thanks a lot telerik team!

The solution you mentioned worked out for me :)

Also i could resolve the issue of lenghty axis texts by setting max lenght. Below is the code i used to fix the issue.

 

chart.PlotArea.XAxis[count].TextBlock.Appearance.MaxLength = text.Length

Thanks,
Krishna Samaga B.

Tags
Chart (Obsolete)
Asked by
Krishna Samaga
Top achievements
Rank 1
Answers by
Velin
Telerik team
Krishna Samaga
Top achievements
Rank 1
Share this question
or