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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NumericalAxis Minimum and Maximum Binding Crash

Thread ID:





141445 Dec 12,2018 02:46 AM UTC Dec 12,2018 05:15 AM UTC Xamarin.Forms 1
Tags: SfChart
Albert K
Asked On December 12, 2018 02:46 AM UTC

I have a secondary axis that is has binding to the minimum and maximum value as shown below.  The whole thing will crash.  I have changed the variable from int to float.  Appearently it works with double,  is this a bug ? 

public int YAxisMin=0;
public int YAxisMax=300;


                        <chart:NumericalAxis Minimum="{Binding YAxisMin}" Maximum="{Binding YAxisMax}">
                                <chart:ChartAxisTitle  Margin="0" BorderWidth="0"  Text="Pressure mmHg"  />


Michael Prabhu M [Syncfusion]
Replied On December 12, 2018 05:15 AM UTC

Hi Albert, 
Greetings from Syncfusion. We have validated your issue and we would like to let you know that, Minimum and Maximum properties are of type double nullable (double?). So, you can directly set integer values to these properties in code behind, but you can’t bind the integer values. It’s a framework level restriction. So, we suggest you to use double values to bind the Minimum and Maximum properties. 
Hope this helps. 


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

Live Chat Icon For mobile
Live Chat Icon