How to fixate Chart axis range of SfChart (WinRT)

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

1 Reply

MK Muneesh Kumar G Syncfusion Team 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

Loader.
Up arrow icon