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

Align legend items horizontally

1 Answer 80 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Arni Gunnar Ragnarsson
Top achievements
Rank 2
Arni Gunnar Ragnarsson asked on 27 Jun 2008, 02:13 PM
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 ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 27 Jun 2008, 04:34 PM
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
Tags
Chart (Obsolete)
Asked by
Arni Gunnar Ragnarsson
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Share this question
or