We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Restoring floating legend position

Thread ID:

Created:

Updated:

Platform:

Replies:

92084 Dec 17,2009 10:26 AM May 10,2010 05:10 AM WPF 7
loading
Tags: Chart
Olivier VAYSSIE
Asked On December 17, 2009 10:26 AM

Hello,

I need to restore a chart exactly as it was saved. In case the legend has been configured in ChartDock.Floating mode,I have to save and restore its position in the chart. I have no idea how to do that. Can you help me with that ?

Many thanks

Olivier Vayssié

Murugavel P [Syncfusion]
Replied On December 18, 2009 07:31 AM

Hi Olivier Vayssie,

Thanks for choosing Syncfusion Products.

Currently we do not have a support for save and restore chart control. This has been confirmed as a Feature Request. We will implement this feature in our forthcoming new version releases or service pack releases.

Let me know if you have any questions.

Thanks & Regards,
Murugavel P

Olivier VAYSSIE
Replied On December 21, 2009 04:44 AM

Hello,

A global save method would not help me. I need a way to get and set the position of the legend in floating mode. I suppose it is not supported today either, but that is what I really need, as I do the saving, loading myself.

Cordially,

Olivier Vayssié

Murugavel P [Syncfusion]
Replied On December 22, 2009 10:57 PM

Hi Olivier Vayssie,

Currently, we do not have this support to get and set the position of chart legend. As a work around you can achieve this by using the following lines of code.

C#:

//To gets the chart legend position

Point position = (Point)VisualTreeHelper.GetOffset(chart.Areas[0].Legend);


//To set the chart legend position

Point point = new Point(200, 200);
Chart.SetDock(chart.Areas[0].Legend, ChartDock.Floating);
chart.Areas[0].Legend.Arrange(new Rect(point.X, point.Y, chart.Areas[0].Legend.DesiredSize.Width, chart.Areas[0].Legend.DesiredSize.Height));


Let us know if you have any questions.

Thanks for choosing Syncfusion Products.

Thanks & Regards,
Murugavel P

Olivier VAYSSIE
Replied On December 23, 2009 04:05 AM

Hello,

It is working great. That's exactly what I needed. You should think to add that to the legend properties. It is quite useful.
Anyway, many thanks for that.

Olivier Vayssié

Murugavel P [Syncfusion]
Replied On December 23, 2009 08:46 AM

Hi Olivier Vayssie,

Thanks for choosing Syncfusion products. Please do not hesitate to open a new forum support if you ever need further assistance from us.

Thanks & Regards,
Murugavel P

Amanda Bissette
Replied On May 7, 2010 09:28 AM

Saving and Restoring a end-user designed chart would be a great improvement and MUCH needed functionality for the Chart tool. Is this something that will be available in the next release?

Thanks,
//Amanda

Sujitha S [Syncfusion]
Replied On May 10, 2010 05:10 AM

Hi Amanda,

Thanks for choosing Syncfusion product.

We have implemented Styles properties for Chart, ChartArea, ChartAxis, Legends and ChartSeries. You can save the styles using these properties. This feature will be included in our next Vol3 release, Which is scheduled on July 2nd week.

Let me know, If you have any queries.

Regards
Sujitha S

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;