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

[Solved] Legends positioning

3 Answers 198 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shalini
Top achievements
Rank 1
Shalini asked on 24 Jun 2008, 08:38 AM
Hi,

I am using RadChart.Net2 dll and I have used following properties to show legend at the bottom of chart:

RadChartGraph.Legend.HAlignment = ChartHAlignment.Center

RadChartGraph.Legend.VAlignment = ChartVAlignment.Bottom

RadChartGraph.Legend.Location = ChartLocation.OutsidePlotArea

RadChartGraph.Legend.LegendStyle = LegendItemsPositionType.Row

but its not working please let me know the solution of this problem.

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 24 Jun 2008, 09:23 AM
Hi Shalini,

We would suggest you to use the AlignedPosition property to achieve the desired effect:

RadChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Bottom; 

You can either combine it with the AutoLayout functionality provided by RadChart, or you can manually increase the bottom margin of the PlotArea (RadChart1.PlotArea.Appearance.Dimensions.Margins.Bottom) in order to accommodate enough space for the legend at the bottom of the chart.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shalini
Top achievements
Rank 1
answered on 24 Jun 2008, 10:33 AM
thanks..

your tips workout for me.

I have one more query how can i show ticks on X-axis.For your information i am using RedChart.Net2 dll file.

0
Giuseppe
Telerik team
answered on 25 Jun 2008, 07:49 AM
Hi Shalini,

The major ticks of the XAxis are visible by default. Unfortunately the XAxis does not support minor ticks so it would not be possible to add intermediate points between the defined major ticks.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Shalini
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Shalini
Top achievements
Rank 1
Share this question
or