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

Reduce font size on zoom out sfchart

Thread ID:

Created:

Updated:

Platform:

Replies:

130991 Jun 15,2017 12:18 AM UTC Jun 19,2017 10:24 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Naveen C Ramachandrappa
Asked On June 15, 2017 12:18 AM UTC

Hi,PFB snapshot. On zooming out, the bar values do overlap. Hence, was wondering if the font size of the bar values can change based on the zoom factor. For eg, on zooming in, the bar value font size increases and on zoom out font size reduces to avoid overlap.2nd point : Also , is it possible to apply the same thing to x axis labels based on zoom factor..



Parthiban Sundaram [Syncfusion]
Replied On June 15, 2017 12:48 PM UTC

Thanks for using Syncfusion products. 
You can set the angle for data marker labels and axis labels to overcome this overlapping issue. Please find the below code snippet. 
Code Example:  
series.DataMarker.LabelStyle.Angle = 270; 
xAxis.LabelRotationAngle = -45; 
 
 
We have also attached a sample for this. Please let us know if it doesn’t meet your requirement. 
Regards,
Parthiban S
 
 


Naveen C Ramachandrappa
Replied On June 16, 2017 08:40 PM UTC

Hi,

I tried this and following is my finding.

xAxis.LabelRotationAngle = -45;  works fine but series.DataMarker.LabelStyle.Angle = 270;  is working only on WP and not on android. In android, it remains unchanged. Looks like the other styles on datamarker label is also not working.  I am using datamarker data template as well and also using datamarker label style.

Snapshots below.

Android :


Windows UWP:




Parthiban Sundaram [Syncfusion]
Replied On June 19, 2017 10:24 AM UTC

Hi Naveen,

Thanks for the update.

We would like inform you that, DataMarker label style won’t work in datamarker template. However, based on your requirement we have achieved it in previous updated sample using Label content and Label Rotation Angle in default datamarker.

Please let us know, if you need further assistance on this.

Regards,
Parthiban 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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;