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

How to Set Legend items horizontal

2 Answers 150 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 13 Mar 2013, 09:11 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Charles
Top achievements
Rank 1
answered on 13 Mar 2013, 09:34 PM
Nevermind, I located the correct property:

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

0
Ivan Petrov
Telerik team
answered on 15 Mar 2013, 02:59 PM
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.
Tags
ChartView
Asked by
Charles
Top achievements
Rank 1
Answers by
Charles
Top achievements
Rank 1
Ivan Petrov
Telerik team
Share this question
or