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

[Solved] Horizontal bar chart work-around

3 Answers 96 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry
Top achievements
Rank 1
Terry asked on 30 Sep 2009, 12:33 AM
I know this is a coming attraction.  I'm hoping there is a way to work around this now.

I have a bar chart with company names on the x axis and $ on the y axis.  The company names average 20 characters so they all overwrite each other and smear together horizontally.  What I really need to do is to have the company names on the y axis and a horizontal bar for $ for each one.  Since this is not currently possible, is there a way I can make the x axis names be vertical rather than horizontal?  This would look a little strange, but at least the company names would be readable.



3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 01 Oct 2009, 08:39 AM
Hi Terry,

You can find rotated X axis labels here. Check this line:
chartArea.AxisX.LabelRotationAngle = 45;

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Terry
Top achievements
Rank 1
answered on 01 Oct 2009, 06:41 PM
Thanks.  That works, but my bars are close together and the labels are long.  When they rotate around the center, the starting point for the first couple of labels end up being far to the left of the bars they represent, so I had to use 90 degrees or -90 degrees to make them line up.

Will horizontal bars happen with the Q3 release?  That is the ultimate solution.
0
Giuseppe
Telerik team
answered on 02 Oct 2009, 07:14 AM
Hi Terry,

We can confirm that HorizontalBar will be introduced with the Q3 2009 official release. At the moment you can download the Q3 2009 BETA from your Client.Net account to preview the new HorizontalBar / HorizontalStackedBar, and HorizontalStackedBar100 series types.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
Terry
Top achievements
Rank 1
Answers by
Ves
Telerik team
Terry
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or