The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
GMGeetha 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