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
close icon

Adjusting bottom padding on Y axis

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.

Thanks
Nathan

word_charts.aspx.zip

2 Replies

RF Rashidha F Syncfusion Team June 7, 2007 04:04 AM UTC

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,
Rashidha.


ND Nathan Dunn June 11, 2007 05:21 AM UTC

Hi Rashidha

Works brilliantly, thanks for all your help.

Regards
Nathan

Loader.
Live Chat Icon For mobile
Up arrow icon