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

Y Axis

Thread ID:





73659 May 14,2008 08:53 AM UTC May 15,2008 05:56 AM UTC WinForms 1
Tags: Chart
Ravit Shem-Tov
Asked On May 14, 2008 08:53 AM UTC

how do i get the y axis to start from 0?
all my values are positive, the y axis is automaticly build(its data bounded from dataset), i dont know the maximum value
but it always add one scale below the 0 and i dont want it

thank you

Bhuvaneswari P [Syncfusion]
Replied On May 15, 2008 05:56 AM UTC

Hi Ravit,

Thanks for using Syncfusion Products.

You can able to achieve your requirement using PrimaryYAxis.Min or PrimaryYAxis.ForeZero properties in ChartControl.

Please refer the following code snippet which illustrates how to set PrimaryYAxis minimum value as Zero.

//Set PrimaryYAxis Minimum Range Property.

this.ChartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.ChartbControl1.PrimaryYAxis.Range.Min = 0;

//Set PrimaryYAxis ForeZero Property.

this.CharControl1.PrimaryYAxis.ForceZero = true;

//Set PrimaryYAxis PreferZero Property.
this.CharControl1.PrimaryYAxis.PreferZero= true;

Please let me know if this helps.

Best Regards,


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