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
close icon

How to define custom x-axis labels ?

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.





8 Replies

ME Manivannan Elangovan Syncfusion Team August 28, 2015 03:14 PM UTC

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



DO Dorababu August 28, 2015 05:58 PM UTC

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  

 


DO Dorababu August 28, 2015 06:02 PM UTC

For Your reference Please find the image.

Thanks Dorababu.

Attachment: Screen_Shot_20150828_at_2.39.50_PM_2_21bc195a.zip


ME Manivannan Elangovan Syncfusion Team August 31, 2015 12:00 PM UTC

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



DO Dorababu August 31, 2015 01:00 PM UTC

Hi Manivannan, 

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


ME Manivannan Elangovan Syncfusion Team September 1, 2015 11:41 AM UTC

Hi Dorababu,

Thanks for the update.

Please let us know if you have any query.

Regards,
Manivannan.E



RC Rajesh Chaudhary June 9, 2016 07:08 AM UTC

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


GM Gobi M Syncfusion Team June 10, 2016 11:33 AM UTC

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 


Loader.
Live Chat Icon For mobile
Up arrow icon