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.

Chart with Daily , Monthly, Yearly, Weekly Filter

Thread ID:

Created:

Updated:

Platform:

Replies:

124164 May 22,2016 08:18 PM Jun 2,2016 09:01 AM Xamarin.Forms 12
loading
Tags: SfChart
Atif
Asked On May 22, 2016 08:18 PM

Hi please guide me is there any way to filter chart at run time with Daily( Hourly), Weekly, Monthly, Yearly.

Gobi M [Syncfusion]
Replied On May 23, 2016 09:10 AM

Hi Atif, 
 
Thanks for contacting Syncfusion support. 
 
We could filter SfChart by dynamically updating its data source. We have prepared a sample for this and it can be downloaded in below link. 
 
 
The DateTime Range Navigator control provides an intuitive interface for selecting a smaller date range from a larger collection. To filter the date range in wide range of chart data we could use SfDateTimeRangeNavigator control. 
 
 
Please let us know for any concerns. 
 
Regards, 
Gobi M 


Atif
Replied On May 24, 2016 12:23 PM

Nice i got the solution, Only one problem i am facing i have my own custom Carousel control and i used content Views inside Carousel and when chart bind with data i am not able to swipe left and swipe right if there is no data in graph inverting works perfect.

Gobi M [Syncfusion]
Replied On May 25, 2016 09:26 AM

Hi Atif,  
 
We have analyzed the reported requirement and achieved your requirement by a workaround. In the workaround sample, we can get the Native SFChart object from AppDelegate class in iOS project here, to customize the chart pan gesture to handle the Carousel view as shown in the below code example. 
 
Code snippet : 
 
Xamarin.Forms.Forms.ViewInitialized += (sender, e) => 
{ 
        SFChart chart = (e.NativeView as SFChart); 
 
        if (chart != null) 
        { 
               foreach (var gesture in chart.GestureRecognizers) 
               { 
                    if (gesture is UIPanGestureRecognizer && gesture.Delegate == null) 
                    { 
                          gesture.Delegate = new CustomGeatureDelegate(e.View as SfChart); 
                    } 
                } 
        } 
}; 
 
We have overridden the UIGestureRecognizerDelegate class and with help of its ShouldBegin method. The customized delegate object has been assigned to chart’s UIPanGestureRecognizer’s delegate property. 
 
We have prepared a sample based on your requirement. Please find the sample from the following link. 
 
 
Please let us know if you have any other query. 
 
Thanks, 
Gobi M 


Atif
Replied On May 27, 2016 12:49 PM

Didn't work, Is there any easy way to detect the swap left and right gestures on graph if it is available then it would help my cause.

Thanks

Gobi M [Syncfusion]
Replied On May 30, 2016 08:34 AM

Hi Atif, 
 
Could you please clarify us whether the sample we gave in our last update is working?  
 
Also, please share us the sample with your custom Carousal control using SfChart to reproduce the issue which would be more helpful for us to serve you better. 
 
Regards, 
Gobi M 


Atif
Replied On May 30, 2016 11:26 AM

I have sent an email with sample project pleas check it.

Ramya Jayapandi [Syncfusion]
Replied On May 30, 2016 11:36 PM

From: Atif Shahzad 
Sent: Monday, May 30, 2016 10:37 AM
To: Syncfusion Support <support@syncfusion.com>
Subject: RE: Syncfusion support community forum 124164, Chart with Daily ,Monthly, Yearly, Weekly Filter, has been updated. 

Here I am attaching a sample app. 

SampleApp


Saravana Pandian Murugan [Syncfusion]
Replied On May 31, 2016 11:07 AM

Hi Atif,

We have modified the sample as per your requirement. In this sample, we have passed the touch move action to the parent (ScrollView) and handled the tap event in Chart.

Please download the sample from the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/124164/ze/SampleApp598099127_(2)1447628522  

Thanks,
Saravana Pandian M. 


Atif
Replied On May 31, 2016 02:58 PM

Thanks you so much i have done with Android , Now i am out of office would you please just confirm is it same for IOS

Thanks

Saravana Pandian Murugan [Syncfusion]
Replied On June 1, 2016 08:50 AM

Hi Atif, 

 

We have added iOS project and tested in your sample. The sample does not require any changes for iOS and it is working fine. 

 

Chart Sample  

 

Please let us know for any queries. 

 

Regards, 

Saravana Pandian M. 

 

Atif
Replied On June 1, 2016 08:49 PM

Well if i use DataMaker then it does not work in IOS but anyhow tool tip works for me so i removed DataMarker and everything works in IOS as well.

Thank you so much.

Saravana Pandian Murugan [Syncfusion]
Replied On June 2, 2016 09:01 AM

Hi Atif,

We have tested DataMarker and Tooltip with provided sample and it is working fine. We are not able to reproduce the issue for data marker. If you provide the sample code or replication procedure for the failure case, it would be helpful for us to fix the issue.

Regards,
Saravana Pandian M.

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.

;