Legend position and chart are width

Hi,

when I set the chart position to right it will be overlyed on the chart area. i have another chart (line) where the chart is made smaller when the legend is put on the right side. thats what i want.

what settings do i need to set?

I have:
.LegendPosition = ChartDock.Right
.PrimaryYAxis.RangeType = ChartAxisRangeType.Auto

Thank you


1 Reply

VK Vijayabharathi K Syncfusion Team March 28, 2012 11:03 AM UTC

Hi Matthias,

Thanks for using Syncfusion product.

If your intention is to set legend in outside of chart area, we suggest you to use “LegendsPlacement” property of legend to avoid legend overlaid on chart area. Please refer the below code snippet to achieve this,

[VB]
Me.ChartWebControl1.LegendsPlacement = ChartPlacement.Outside

http://asp.syncfusion.com/demos/ui/chart/Chart%20Title%20and%20Legends/ChartLegendCustomization/CS/ChartLegendCustomization.aspx

Please let us know if we misunderstood your query please provide us some clear details or screenshots about this requirement, so that we could provide you a solution in optimal way.

Regards,
Vijayabharathi




Loader.
Up arrow icon