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.
Syncfusion Feedback

Data values

Thread ID:

Created:

Updated:

Platform:

Replies:

129842 Apr 6,2017 03:20 AM UTC Jul 3,2017 12:37 PM UTC Xamarin.Forms 6
loading
Tags: SfChart
Yuri
Asked On April 6, 2017 03:20 AM UTC

Anyone knows how to use doubles for both axis on SfChart ?
The documentation example only works for integers or categories.


ObservableArrayList HighTemperature = new ObservableArrayList;

     HighTemperature.Add(new ChartDataPoint("Jan", 42));
     HighTemperature.Add(new ChartDataPoint("Jan", 3.03));


I can't replace "Jan" for a double, only for an integer.


Thanks

Saravana Pandian Murugan [Syncfusion]
Replied On April 6, 2017 11:18 AM UTC

Hi Yuri,

Thanks for contacting Syncfusion support.

We can able to achieve your requirement by using the NumericalAxis as PrimaryAxis. Please refer the below help document for more details.

UG Link: https://help.syncfusion.com/xamarin/sfchart/axis#numeric-axis

We have prepared a sample as per your requirement which can be downloaded from the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/125289/ze/ChartSample1851947751

Please let us know if you have any concerns.

Regards,
Saravana Pandian M.


Yuri
Replied On April 6, 2017 02:20 PM UTC

Thanks for replying so quick !
Problem solved.

Saravana Pandian Murugan [Syncfusion]
Replied On April 7, 2017 01:07 PM UTC

Hi Michal,

Thanks for the update.

Yes. It will work fine in actual devices without any issues. Please let us know if you have any concerns.

Regards,
Saravana Pandian M. 


Saravana Pandian Murugan [Syncfusion]
Replied On April 7, 2017 05:30 PM UTC

Hi Yuri,

Please ignore the previous update. Sorry for the inconvenience caused.

Thanks for the update. We are glad to know that the given solution works. Please let us know if you need any further assistance.

Regards,
Saravana Pandian M. 


Yuri
Replied On July 1, 2017 03:10 PM UTC

One more thing, considering that the chart is set as the activity's view, is there any other way of updating the chart without reloading the activity ? and how could I insert other visual components in the same activity. 

Thanks


Saravana Pandian Murugan [Syncfusion]
Replied On July 3, 2017 12:37 PM UTC

Hi Yuri,

Regarding “Is there any other way of updating the chart without reloading the activity?”,

You can add/remove/insert the datas to ObservableArrayList without reloading the entire activity.

Regarding “How could I insert other visual components in the same activity”,

We have added another view in the layout which already has SfChart. We have attached the sample for your reference which can be downloaded from the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/131265/ze/Fragment_Chart_Sample-605397497

Please check the sample and let us know if you need further assistance on this.

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.

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

;