Horizontal bar chart work-around

4 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 29 Sep 2009 Link to this post

    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.



  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 01 Oct 2009 Link to this post

    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.
  3. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 01 Oct 2009 Link to this post

    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.
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 02 Oct 2009 Link to this post

    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.
Back to Top