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

How to fixate Chart axis range of SfChart (WinRT)

Thread ID:

Created:

Updated:

Platform:

Replies:

114009 Oct 22,2013 04:34 PM UTC Oct 24,2013 09:23 AM UTC Metro Studio 1
loading
Tags: Metro Studio
Martin Scheibenreif
Asked On October 22, 2013 04:34 PM UTC

Hello Syncfusion Team!

Is it possible to fixate the axis range of a chart? Lets say for example i want the x-axis always to show a segment from 0 to +200 and the y-axis from - 50 to +50.

The chart always zooms to an automatic extent, when i add new line-series. I would like to disable this behaviour.

Thanks in advance, martin

Muneesh Kumar G [Syncfusion]
Replied On October 24, 2013 09:23 AM UTC

Hi Martin,

Thanks for using Syncfusion Products.

We can achieve your requirement by setting Minimum and Maximum as per the below code snippet.

Code snippet [XAML]:

<syncfusion:SfChart.PrimaryAxis>

<syncfusion:NumericalAxis Minimum="0" Maximum="200"/>

</syncfusion:SfChart.PrimaryAxis>

<syncfusion:SfChart.SecondaryAxis>

<syncfusion:NumericalAxis Minimum="-50" Maximum="50"/>

</syncfusion:SfChart.SecondaryAxis>

We have prepared a sample based on this and you can find the sample under the following location:

Please let us know if you have any queries.

Regards,

Muneesh Kumar G.



SfChart_AxisRange_5d392411.zip

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

;