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.

Scaling a saved chart?

Thread ID:

Created:

Updated:

Platform:

Replies:

88665 Aug 5,2009 10:45 PM Aug 11,2009 10:59 AM WPF 3
loading
Tags: Chart
Mike Berriman
Asked On August 5, 2009 10:45 PM

I've been using the Chart.save() method, which works fine based on the size of the chart, but I'd like to try to save the chart at a particular pixel size, and am having some problems.

What I've tried is this :

double width = chart1.ActualWidth;
double height = chart1.ActualHeight;

chart1.Measure(new Size(1000, 1000));
chart1.Arrange(new Rect(0, 0, 1000, 1000));

chart1.Save(parameters[0]);

Which kind of works. I have tried settings the Width and Height member of the chart, but they have little effect.

Firstly it doesn't resize fully in the image (output image is 634x1000).

Secondly, the series are not drawn correctly in the image. If you look at the attachment, The base of the columns should be at 0, and in fact the line and the circles are the same series, the circles being adornments to the line chart.

Can you suggest a way that I can get a chart saved image out at a given size, regardless of the chart size on screen? Basically, the charts in my software are quite small, but I'd like to be able to generate nice images of a bigger size as output png's. I'd much prefer to do it without resizing the output image, because that will just look bad.

Any ideas?



chart_8a9502b3.png

Saradha [Syncfusion]
Replied On August 6, 2009 01:15 AM

Hi Mike,

The issue 'Series are not updated properly when we save the chart with Measure and Arrange calls' has been confirmed as a defect and has been logged as a defect report. The fix for this issue will be available in three weeks time. Thanks for bringing this issue to our notice.

As per our company policy we don't provide defect fix related information in Forum. Since the Forum is considered as a discussion venue for developers and not the primary source for support you can use your Direct Trac account for our further assistance and to keep track of this defect status.

Thank you for your interest in Syncfusion products.

Regards,
K. Saradha Devi

Mike Berriman
Replied On August 6, 2009 07:14 PM

This defect is not showing up in my "Open Issues" in Direct-Trac - is there something I need to do to be updated of it's status?

Prabhu P [Syncfusion]
Replied On August 11, 2009 10:59 AM

Hi Mike,

Currently we are maintaining all the issues in our internal bug tracking system which will not be available in Direct-Trac. We will get back to you with fix detils as soon as this issue gets fixed.

Thanks for your patience.

Regards,
Prabu


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.

;