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. Image for the cookie policy date

Series padding

Is there an easy way to eliminate the padding below the axis origin? For example, if I have a column series with a max value of 30, the visible y axis range goes from -10 to 40. I would like it go from 0 to 40 so that there is no space below the columns - they just sit right on the x axis. Thanks, Terry

1 Reply

GM Geetha M Syncfusion Team December 15, 2005 09:58 AM UTC

Hi Terry, To set the Y Axis visible range to start from 0 and to adjust the range of the Y axis you need to set the range of the axis manually. The following code illustrates this: this.chartControl1.PrimaryYAxis.Range = new MinMaxInfo(0,40,10); The above code sets the Y axis minimum value, maximum value and interval respectively. You can also set the range for X axis and for any secondary axis you create in the same way. I hope this helps you. Thanks and Regards, Geetha

Loader.
Live Chat Icon For mobile
Up arrow icon