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

How to change axis location on screen

Hi.

I want to know how we can change the axis position, to look like a Cartesian graph.

Like this:

I want to be able to center the origins on screen after getting display width and height. Is it possible to do that?

3 Replies

SS Suresh S Syncfusion Team January 26, 2015 09:46 AM UTC

Hi Khawar,


Thanks for using Syncfusion products.


We have analyzed your query and this can be achieved in SfChart by using ShowAxisNextToOrigin property as shown in the below code snippet. We have also prepared a sample based on your requirement.


Please find the sample from the following location.


Code Snippet [XAML]:

<chart:SfChart.PrimaryAxis>

<chart:NumericalAxis ShowAxisNextToOrigin="True"/>

chart:SfChart.PrimaryAxis>

<chart:SfChart.SecondaryAxis>

<chart:NumericalAxis ShowAxisNextToOrigin="True"/>

chart:SfChart.SecondaryAxis>


Please let us know if you require further assistance on this.


Regards,

Suresh S


Attachment: SfChartAxis_9f55c38.zip


KN Khawar Nadeem replied to Suresh S February 6, 2015 06:37 PM UTC

Hi Khawar,


Thanks for using Syncfusion products.


We have analyzed your query and this can be achieved in SfChart by using ShowAxisNextToOrigin property as shown in the below code snippet. We have also prepared a sample based on your requirement.


Please find the sample from the following location.


Code Snippet [XAML]:

<chart:SfChart.PrimaryAxis>

<chart:NumericalAxis ShowAxisNextToOrigin="True"/>

chart:SfChart.PrimaryAxis>

<chart:SfChart.SecondaryAxis>

<chart:NumericalAxis ShowAxisNextToOrigin="True"/>

chart:SfChart.SecondaryAxis>


Please let us know if you require further assistance on this.


Regards,

Suresh S


Attachment: SfChartAxis_9f55c38.zip

Oh my God, that works so perfectly. Thank you so very much!


RA Rachel A Syncfusion Team February 9, 2015 06:44 AM UTC

Hi Khawar,

Thanks for your response.

Please let us know if you require further assistance on this.

Thanks,

Rachel. A



Loader.
Live Chat Icon For mobile
Up arrow icon