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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Locking the Minvalue of Axis to 0

Thread ID:

Created:

Updated:

Platform:

Replies:

53252 Dec 11,2006 05:08 PM UTC Dec 14,2006 07:09 PM UTC WinForms 9
loading
Tags: Chart
Navaneeth Rajkumar
Asked On December 11, 2006 05:08 PM UTC

Hi,
I have used the following code to set the Y axis scale of my chart.

this.myChart.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.myChart.PrimaryYAxis.Range = new MinMaxInfo(0 ,range,intervals);

The scale is supposed to have a min of 0 and max of range.. This works fine when intervals is a whole number.. But when intervals is decimal(0.12,0.15), the min becomes negative or at times .05.

Please find attached 2 screen shots of these issues.

I would be glad if you could advice me on ways by which I can suppress this..

Thanks
Navaneeth

samples5.zip

Administrator [Syncfusion]
Replied On December 11, 2006 06:18 PM UTC

Hi Navaneeth,

I assume that you are using Syncfusion product version 4.4.0.51

I am unable to reproduce this issue.

Please have a look at the sample attached with screen shot.

Line Chart Sample

Screen shot

Please let me know if you have any questions.

Thanks for using Syncfusion products.

Regards,
Sureshbabu

Navaneeth Rajkumar
Replied On December 11, 2006 06:24 PM UTC

SureshBabu,
I am using 4.2.0.60..

Thanks
Navaneeth

>Hi Navaneeth,

I assume that you are using Syncfusion product version 4.4.0.51

I am unable to reproduce this issue.

Please have a look at the sample attached with screen shot.

Line Chart Sample

Screen shot

Please let me know if you have any questions.

Thanks for using Syncfusion products.

Regards,
Sureshbabu

Navaneeth Rajkumar
Replied On December 11, 2006 06:45 PM UTC

Intervals of .1,.2 etc work fine.. but intervals of .15,.25,.75 etc causes these issues..

Administrator [Syncfusion]
Replied On December 11, 2006 07:35 PM UTC

Hi Navaneeth,

Sorry for the inconvenience caused.

I am unable to reproduce this issue.

Please have a look at the sample attached with screen shot.

Modified Line Chart Sample

Please let me know if this helps.

Thanks for your interest in Syncfusion products.

Regards,
Sureshbabu

Navaneeth Rajkumar
Replied On December 11, 2006 07:56 PM UTC

Hi SureshBabu,
In the response that you sent, You had indeed reproduced the issue I had. Please look at the Y axis in your screenshot.

It is 0,.15,.3,.44,.59,.74 instead of intervals of .15.. It loses .01 pt in many intervals..

Thanks
Navaneeth

>Hi Navaneeth,

Sorry for the inconvenience caused.

I am unable to reproduce this issue.

Please have a look at the sample attached with screen shot.

Modified Line Chart Sample

Please let me know if this helps.

Thanks for your interest in Syncfusion products.

Regards,
Sureshbabu

Navaneeth Rajkumar
Replied On December 11, 2006 08:29 PM UTC

I have attached another example.. The scale is (0,416,32). So each interval is 32 and there are 13 intervals.. 32*13 = 416.
Its supposed to be (0,32,64,96, etc). Instead it starts with -4 and each interval is 32.31 or 32.30 instead of 32.00. .31 or .30 is added for each interval to make up for the -4 start.

It would be glad if you could give me a quick fix for this issue.

Thanks
Navaneeth

sample312.zip

Administrator [Syncfusion]
Replied On December 12, 2006 09:54 PM UTC

Hi Navaneeth,

I regret very much for the inconvenience caused.

In the above attached screen shot, 0, .15, .3, .44, .59, .74 instead of intervals of .15... The reason is,
Let us take a range(0, 4.0, 0.15). For this range, if it calculated like 0.15, .30, .45, .6, .75, ..., 3.90, 4.0. Interval value between the last two values is incorrect. For this, it equalizes the interval values by itself. So only the variation occurs.

Please have a look at the sample attached which will help you to set the labels as you need.

Modified Line Chart Sample

Please let me know if this helps.

Thanks for your patience.

Regards,
Sureshbabu

Navaneeth Rajkumar
Replied On December 13, 2006 05:55 PM UTC

Hi SureshBabu,
So you are saying that the range is not a multiple of intervals then there is this variation. Example: (0,10,1),(0,10,.5).. Even (0,416,32) should work coz 416 = 32 * 13..

Please view the attached file.
The Y axis id supposed to be (0,32,64,96 ..384,416). Instead it starts with -4 and each interval is 32.31 or 32.30 instead of 32.00. .31 or .30 is added for each interval to make up for the -4 start.

There are numerous co-ordinate example where this happens.. I would be glad if there is a quick fix. Or atleast a way to specify the different points on the Y Axis.

Thanks
Navaneeth




>Hi Navaneeth,

I regret very much for the inconvenience caused.

In the above attached screen shot, 0, .15, .3, .44, .59, .74 instead of intervals of .15... The reason is,
Let us take a range(0, 4.0, 0.15). For this range, if it calculated like 0.15, .30, .45, .6, .75, ..., 3.90, 4.0. Interval value between the last two values is incorrect. For this, it equalizes the interval values by itself. So only the variation occurs.

Please have a look at the sample attached which will help you to set the labels as you need.

Modified Line Chart Sample

Please let me know if this helps.

Thanks for your patience.

Regards,
Sureshbabu

sample313.zip

Administrator [Syncfusion]
Replied On December 14, 2006 07:09 PM UTC

Hi Navaneeth,

Thanks for your update.

The mentioned issue is fixed in latest version 4.4.0.51. See the attached screen shot.
Chart Axis Range screen shot

Please upgrade to latest version by downloading it from the following location.

http://www.syncfusion.com/downloads/latestversion/default.aspx

I have created a bug report regarding the interval variation. You can view the status of the issue in the following location.

http://www.syncfusion.com/support/issues/chart/Default.aspx?ToDo=view&questId=3197

Let me know if you have any questions.

Thanks for continued interest in Syncfusion products.

Thanks,
Sureshbabu

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;