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

Show chart legend in multiple rows

1 Answer 228 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 12 Oct 2011, 10:04 AM
Hi,

Currently i have a chart with its legends (total 5 items) displayed in 1 row at the bottom. See below code.

I'm trying to put the legend at the right side of the graph, and outside plot area. After i changed the alignedposition to be right, all the legends (total 5 items) are shown in 1 row.
e.g.,  - Series 1  - Series 2

I want to display as those demos on Telerik website, each legend takes 1 row.
E.g.,
  • Series 1
  • Series 2

ChartControl.Legend.Appearance.Location = Telerik.Charting.Styles.LabelLocation.OutsidePlotArea;
ChartControl.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Bottom;

Please advise how to achieve it. Thanks,

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 14 Oct 2011, 01:31 PM
Hi Brandon,

You can specify whether the legend items should be rendered in a single row or column via the RadChart.Legend.Appearance.Overflow property like this:
PieChart1.Legend.Appearance.Overflow = Telerik.Charting.Styles.Overflow.Column;

Best wishes,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Brandon
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or