Align legend items horizontally

Thread is closed for posting
2 posts, 1 answers
  1. Arni Gunnar Ragnarsson
    Arni Gunnar Ragnarsson avatar
    13 posts
    Member since:
    Jul 2007

    Posted 27 Jun 2008 Link to this post

    Hi.

    Is there a way for me to align the items in the lenged part of the chart horizontally (then at the bottom of the chart) instead of vertically ?
  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 27 Jun 2008 Link to this post

    Hi Arni Gunnar Ragnarsson,

    You can achieve the desired effect like this:

    <telerik:RadChart ID="RadChart1" runat="server" AutoLayout="true"
        <Series> 
            <telerik:ChartSeries Name="series 1"
                <Items> 
                    <telerik:ChartSeriesItem YValue="10"
                    </telerik:ChartSeriesItem> 
                    <telerik:ChartSeriesItem YValue="5"
                    </telerik:ChartSeriesItem> 
                </Items> 
            </telerik:ChartSeries> 
            <telerik:ChartSeries Name="series 2"
                <Items> 
                    <telerik:ChartSeriesItem YValue="10"
                    </telerik:ChartSeriesItem> 
                    <telerik:ChartSeriesItem YValue="5"
                    </telerik:ChartSeriesItem> 
                </Items> 
            </telerik:ChartSeries> 
        </Series> 
        <Legend > 
            <Appearance Overflow="Row" Position-AlignedPosition="Bottom"></Appearance> 
        </Legend> 
    </telerik:RadChart> 


    Hope this helps.


    Best wishes,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top