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

On Property changed , SfChart (Line Series ) Shows data when we Zoom in and Zoom out

Thread ID:





144656 May 16,2019 07:00 AM UTC May 17,2019 10:37 AM UTC Xamarin.Forms 1
Tags: SfChart
Nancy Kanwr
Asked On May 16, 2019 07:00 AM UTC

<chart:SfChart x:Name="Chart"  VerticalOptions="FillAndExpand"   HeightRequest="200" >
                                         <chart:ChartZoomPanBehavior EnableSelectionZooming="False"   MaximumZoomLevel="0" EnableDoubleTap="True" />
                                                   <chart:CategoryAxis EnableAutoIntervalOnZooming="False">
                                                                          <chart:ChartAxisTitle Text="Months"/>
                                                   <chart:NumericalAxis >
                                            <chart:ChartAxisTitle Text="Salary"/>

                                             <chart:FastLineSeries EnableTooltip="true" ListenPropertyChange="True"
                                                          ItemsSource="{Binding ChartData}" 
                                                          EnableAnimation="False" StrokeWidth="1"/>


This chart:SfChart is inside scroll view 
I have made a property in View Model

        private ObservableCollection<ChartDataModel> _chartData = new ObservableCollection<ChartDataModel>();
        public ObservableCollection<ChartDataModel> ChartData
            get => _chartData;
                _chartData = value;
Fist Step - In Initilize function of View Model , I have made a call , which works pretty fine , But when i change the value in drop down and wish to get the desired output in charts , Nothing is shown , I have to zoom in zoom out 2- 3 times , then data loads . 

Attachment: Video_a55a633e.zip

Bharathiraja K [Syncfusion]
Replied On May 17, 2019 10:37 AM UTC

Hi Nancy, 
Greetings from Syncfusion. We have checked the video and not figured the reported issue in the attached video, it seems like delay in render the chart.  
You have reported that after multiple time of zoom performed chart is updated, but in the video, it not seems like performing zoom.  
We suspect that you are using category Axis in Chart. When you have large amount of data in category axis, it will affect the performance since it is always rendered based on the index value. So, we suggest follow the chart performance improvement blog.  
Still you are facing performance related issue, please share your Mock-up project or code snippet with data points used in your application with replication steps. This will be helpful for us to investigate further and provide you a better solution at the earliest. 


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