How do I move a chart legend?

The introduction in the documentation for Essential Chart for WPF says: The position of the legend on the chart area as well as its representation aspects can be customized.

My question is simple. HOW?

By default, the legend is on top of the chart area. I wish to move the legend to the right of the chart area and can't find any property for doing this.

Also, I am using Blend 4.0 and can't even select the legend like users of Visual Studio can. But even in Visual Studio, there doesn't seem to be a way to move the legend.


3 Replies

BS Baskaran S Syncfusion Team February 23, 2012 12:44 PM UTC

Hi Craig Palenshus,

Thanks for your interest in Syncfusion products.

We analyzed your requirement and it can be achieved by setting the SetDock attached property of chart as in below code snippet.

Code snippet:
[C#]

Chart.SetDock(LegendName, ChartDock.Right);

[XAML]






We have also prepared a sample based on your requirement. Please find the sample from the attachment.

Please let us know if you need any further assistance.

Regards,
Baskaran S




CS_184ba713.zip


CP Craig Palenshus February 23, 2012 02:06 PM UTC

Thanks. I'll look at the sample, but how do you do this in Blend? I really don't want to have to write code (sort of defeats the purpose of Blend). Isn't there a way to select the legend and set the position property to "right"?



BS Baskaran S Syncfusion Team March 9, 2012 07:34 AM UTC

Hi Craig Palenshus,

We have prepared a sample in Blend based on your requirement. And also we have attached the video file for your reference. Please find the sample and video file from the attachment.

Please let us know if you need any further assistance.

Regards,
Baskaran S



102700_5e79698a.rar

Loader.
Up arrow icon