Range and Interval problem

Hi
I try to have always the same interval(Interval=1) on the X-Axes, even though I change the range from the X-Axes. So thats actualy not a problem I thought. I set the ChartAxis property IsAutoSetRange=false and the ChartSeries property IsIndexed=false. Everything works fine when the range is from 0 to any number but when I set the range from 10 to 20 the interval will change from 1 to 2 or when I put the range 10,30 the Interval will change to 3.
Why it changes the interval? Have I forgot something?
To see this issue on an example you can open the example in essential Studio: Chart/Chart Axis/Chart Axis Configuration Demo than set the interval to 1, disable AutoSetRange and enter range: 0,20 -> everything ok
now enter range 10,20 -> the interval will change...
Is there a way to have always the entered interval?

Thanks for your help
Ben

3 Replies

KV Karthikeyan V Syncfusion Team November 29, 2012 01:05 PM UTC

Hi Ben,

We have analyzed the stated issue. This is due to IntersectAction behavior of Chart Axis. The IntersectAction property has been set default hide. So you can achieve it by applying IntersectAction as ChartAxis. Please find the code snippet below:

Code snippet [XAML]:

<syncfusion:ChartAxis x:Name="XAxis" Range="10,30" Interval="1" IntersectAction="Rotate" SmallTickSize="5" TickLinesRange="1" TickSize="15" RangePadding="Normal" Header="Number of Cars Sold" IsAutoSetRange="False" >

                       
Please find the more details about the IntersectAction property in our documentation.

Documentation link: http://help.syncfusion.com/UG/User%20Interface/WPF/Chart/default.htm#!Documents/intersectinglabels1.htm

Please let us know if this helps.

Regards,
Karthikeyan V.



TB Tanner Benjamin December 11, 2012 12:27 PM UTC

Dear Karthikeyan

Thank you for your reply. Unforthunately your suggestion didn't solve my problem.
I put the intersectAction property into the sample code:

<syncfusion:ChartAxis x:Name="XAxis" Range="0,30" Interval="1" IntersectAction="Rotate"  SmallTickSize="5" TickLinesRange="1" TickSize="15" RangePadding="Normal" IsAutoSetRange="False">


<syncfusion:ChartAxis x:Name="XAxis" Range="7,30" Interval="1" IntersectAction="Rotate"  SmallTickSize="5" TickLinesRange="1" TickSize="15" RangePadding="Normal" IsAutoSetRange="False">

So actually the interval is not 1 as expected, have you got another idea how to have always the declared interval?
Thank you for your support
Regards,
Ben


KV Karthikeyan V Syncfusion Team December 13, 2012 04:40 AM UTC

Hi Ben,

We are analyzed the reported issue. We are unable to reproduce the problem in our side, let us know the version that you are using. As in our latest version particular scenario is working well.  Could you please provide us the details?

Please let us know, if you have any query.

Regards,

Karthikeyan V.


Loader.
Up arrow icon