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

Cannot create ChartDataPoint

Thread ID:





120011 Aug 24,2015 02:51 AM UTC Aug 28,2015 05:50 AM UTC Xamarin.Android 3
Tags: SfChart
Cathryn McDonald
Asked On August 24, 2015 02:51 AM UTC

Another problem... I have the following code to create data points for my chart:
myData.Add (new ChartDataPoint (new DateTime(2015,8,24,16,0,0), 1.0));
myData.Add (new ChartDataPoint (new DateTime(2015,8,24,16,30,0), 2.0));
myData.Add (new ChartDataPoint (new DateTime(2015,8,24,17,0,0), 1.5));
However, when I go to compile the code, there is no matching constructor. The only constructor it can find is ChartDataPoint(System.IntPtr, Android.Runtime.JniHandleOwnership). However, the examples seem to create data points this way. There appears to be a constructor with ChartDataPoint(Object p0, Object p1) in the ChartDataPoint class, but the compiler can't find it.
What is going wrong here?

Yuvaraj Palanisamy [Syncfusion]
Replied On August 24, 2015 11:49 AM UTC

Hi Cathryn,

Thanks for using Syncfusion products.

We have to use Date object to create ChartDataPoint for date time value. Also, we have prepared a sample based on this.

Please find the sample from the below location,

Sample : http://www.syncfusion.com/downloads/support/forum/120011/ze/ChartSample993295755

Please let us know if you require further assistance.


Cathryn McDonald
Replied On August 27, 2015 06:29 AM UTC

Thanks, that works.

However I still can't get the DateTimeAxis to format correctly. I want to show the time with AM or PM, but using "T" or "tt" in the LabelFormat string causes the app to crash. Does Xamarin.Android support these formatting labels?

Yuvaraj Palanisamy [Syncfusion]
Replied On August 28, 2015 05:50 AM UTC

Hi Cathryn,

Thanks for the update.

We have prepared a sample for your requirement. Please find the sample from the below location,

Sample: http://www.syncfusion.com/downloads/support/forum/120011/ze/ChartSample-1392923326

Please let us know if you require further assistance.



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