How to Set Legend items horizontal

3 posts, 1 answers
  1. CC
    CC avatar
    8 posts
    Member since:
    Mar 2009

    Posted 13 Mar 2013 Link to this post


    Currently my series legend labels display vertically stacked. I wish to set the legend items horizonally centered below the graph. I can change the legend position, but the legend series are still stacked vertically. How can I change this?

      <GRAPH>
        X Item 1
        X Item 2

    I wish to have the legend centered and horizontal  below the graph...

            <GRAPH>
     X Item 1        X  Item 2

  2. Answer
    CC
    CC avatar
    8 posts
    Member since:
    Mar 2009

    Posted 13 Mar 2013 Link to this post

    Nevermind, I located the correct property:

    chart.chartelement.legendelement.stackelement.orientation = orientation.horizontal

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 15 Mar 2013 Link to this post

    Hello Chuck,

    Thank you for writing.

    I am glad you have found your way through this problem on your own. I have marked your post as answer so others who might be searching for the same information can find it quicker.

    Should further questions arise, do not hesitate to contact us.

    All the best,
    Ivan Petrov
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top