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.

How to define custom x-axis labels ?

Thread ID:

Created:

Updated:

Platform:

Replies:

120080 Aug 28,2015 05:15 AM Jun 10,2016 07:33 AM Xamarin.iOS 8
loading
Tags: SfChart
Dorababu
Asked On August 28, 2015 05:15 AM

I am using Multiple Line series with X- Axis as Category Axis.

I have a chart made with 10 line series, those 10 line series have different value for the X & Y axis.The problem is that once the chart is built I can only see the X value of the first series.


For Example First series is having 4 values for X- Axis and second series is having 2 values for X- Axis and like that there will be different X- Axis Values for different Series. but from second series onwards its showing only first series X-Axis values only.


I want to draw Line chart with respective of that particular series values.





Manivannan Elangovan [Syncfusion]
Replied On August 28, 2015 11:14 AM

Hi Dorababu,


Thanks for using Syncfusion products.


We are able to achieve your requirement by using Muliple axes support. This support can be achieved by XAxis and YAxis properties in SFSeries. The below code snippet shows how to define the Mulitple axes.


CodeSnippet:


SFLineSeries series        = new SFLineSeries ();

series.Label                     = new NSString ("Series1");

SFCategoryAxis xAxis   = new SFCategoryAxis ();

xAxis.Title.Text              = new NSString ("Series1");

series.XAxis                    = xAxis;

return series;


We have prepared a sample based on requirement. You can download the sample from the following location.


Sample: MultiLineSeries


Please let us know, if you need any further assistance on this.


Regards,

Manivannan.E


Dorababu
Replied On August 28, 2015 01:58 PM

Hi Manivannan, 

Thanks for your reply. The example you have given looking like its having Multiple X -Axis with different category values.
My problem was, I am having suppose 5 series, the following are the datapoints
            X-Value         Yvalue
Data1:  Aug-02           50
            Aug-15           20
            Aug-20           30
            Sep-02           40

Data2:  Aug-05           30
            Aug-18           10
            Sep-02           40

Data3:  Aug-02           30
            Sep-02           40

So From the Above data I want build a Graph with X- Axis of values Aug-02 Aug- 05 Aug-15 Aug-18 Sep-02 .....
and Y - axis will be like normal Numeric values.

So I want to display each series data with respective to its date(X - Value).

I don't want to display multiple X -Axis. It should be One X - Axis with all the Dates  

 

Dorababu
Replied On August 28, 2015 02:02 PM

For Your reference Please find the image.

Thanks Dorababu.

Attachment: Screen_Shot_20150828_at_2.39.50_PM_2_21bc195a.zip

Manivannan Elangovan [Syncfusion]
Replied On August 31, 2015 08:00 AM

Hi Dorababu,

We are able to achieve your requirement by using SFDateTimeAxis. Each series data has been displayed with respective to its date in same X Axis.

We have prepared a sample based on requirement. You can download the sample from the following location.

Sample: CustomXAxis

Please let us know, if you need any further assistance on this.

Regards,

Manivannan.E


Dorababu
Replied On August 31, 2015 09:00 AM

Hi Manivannan, 

Thanks for your support.This was Done.
Awesome, Thank you very much.
Dorababu.

Manivannan Elangovan [Syncfusion]
Replied On September 1, 2015 07:41 AM

Hi Dorababu,

Thanks for the update.

Please let us know if you have any query.

Regards,
Manivannan.E


Rajesh Chaudhary
Replied On June 9, 2016 03:08 AM

Hi Mani,

I'm looking for Synchronized chart Area support for the Sync fusion charts - for  Xamarin forms .

I know this is present for Silverlight with the below explanation : 

Synchronizing chart areas allows multiple charts to share a common primary axis while maintaining a

unique secondary axis for each chart. This feature is useful when comparing two sets of data that share

a common measurement.

 I have attached the image for your reference.


We are about to purchase your charting component for xamarin.But we need  this info to decide whether to go ahead with Syncfusion


 





Attachment: SynchronizedChart_ef347b9.zip

Gobi M [Syncfusion]
Replied On June 10, 2016 07:33 AM

Hi Mayank, 
 
Thanks for contacting Syncfusion support.

Currently, we don’t have direct support to render the series in multiple area of the same chart. We have prepared the workaround sample using Grid layout and it can be downloaded from the below link.

Chart Sample
 
 
Please let us know for any queries.

Regards,
 
Gobi 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.

;