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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issues with size/resolution when exporting charts

Thread ID:

Created:

Updated:

Platform:

Replies:

142736 Feb 17,2019 08:01 PM UTC Feb 22,2019 09:02 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Nicholas
Asked On February 17, 2019 08:02 PM UTC

Hi,

We are having an issue when exporting charts using the GetStream() method. Initially, it appeared as though the size of the fonts were bigger and that was causing the graph to be squashed. However, reducing the font size only made some difference and we still cannot see the graphs properly on some devices. I attach two images from a PDF we are creating by using GetStream() to export the charts. One of them is from an OPPO Ax7 and the other is from a Pixel 2. As you can see the Pixel 2 version is very cramped where the OPPO version is not.

This issue does not occur when exporting on iOS, only Android.

I also attach the code we are using to generate the chart itself (which is them exported using GetStream() and added to a PDF.

You help would be greatly appreciated!

Thanks.



Attachment: ChartCodeAndImages_dc93a53d.zip

Bharathiraja K [Syncfusion]
Replied On February 18, 2019 11:20 AM UTC

Hi Nicholas, 
 
Greetings from Syncfusion. We have provided response for the same query in your direct track incident. Please login with the below link to track the status of your query. 
 
 
Regards, 
Bharathiraja. 


Nicholas
Replied On February 21, 2019 07:53 AM UTC

In case anyone stumbles across a similar issue in the future, the resolution to this issue was to multiply the heightrequest and widthrequest by the devices pixel density factor (this.Resources.DisplayMetrics.Density in the Android project) before calling GetStream().

Thanks to the support team for pointing me in the right direction!

Bharathiraja K [Syncfusion]
Replied On February 22, 2019 09:02 AM UTC

Hi Nicolas, 
 
Yes. You are correct. Thanks for your update. 
 
Regards, 
Bharathi. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;