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.
Unfortunately, activation email could not send to your email. Please try again.

Adjusting bottom padding on Y axis

Thread ID:





62012 Jun 6,2007 08:19 AM Jun 11,2007 01:21 AM ASP.NET Web Forms (Classic) 2
Tags: Chart
Nathan Dunn
Asked On June 6, 2007 08:19 AM

In my attachment, how do I move all the bars down so they are sitting on top of the X axis? I've already set the PrimaryYAxis.Range.Min = 0 but this does nothing.



Rashidha F [Syncfusion]
Replied On June 7, 2007 12:04 AM

Hi Nathan,

Thanks for using Syncfusion Products.

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

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

//Set PrimaryYAxis Minimum Range Property.

this.ChartWebControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.ChartWebControl1.PrimaryYAxis.Range.Min = 0;

//Set PrimaryYAxis ForeZero Property.

this.ChartWebControl1.PrimaryYAxis.ForceZero = true;

Please let me know if this helps.

Thanks and Regards,

Nathan Dunn
Replied On June 11, 2007 01:21 AM

Hi Rashidha

Works brilliantly, thanks for all your help.



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.

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.