Articles in this section
Category / Section

What are the range padding options available in ASP.NET WebForms Chart?

2 mins read

Essential Chart supports different types of RangePadding options to avoid partial appearance of point and data labels near the left and right edges of the Chart area. The different types of padding options for the axis in Essential Chart are described as follows.

None

Axis range is calculated from the minimum value to the maximum value in DataSource.  None is the default value for the range padding.

ASP

    <ej:Chart ID="Chart1" runat="server">
        <PrimaryXAxis RangePadding="None"></PrimaryXAxis>
        . . . . . . . . . . . . 
    </ej:Chart>

 

The screenshot displays the Chart with the range padding set to None.

The Chart with the range padding set to None.

Figure 1: Range padding set to None

Normal

Axis range is calculated based on the numeric nice interval range calculation. This is applicable for numerical axis alone and is specifically used for Y-Axis in the Chart.

ASP

    <ej:Chart ID="Chart1" runat="server">
        <PrimaryXAxis RangePadding="Normal"></PrimaryXAxis> 
        . . . . . . . . . 
    </ej:Chart>

 

The following screenshot displays the Chart with the range padding set to Normal.

The Chart with the range padding set to Normal

Figure 2: Range padding set to Normal

Additional

Axis range is calculated by adding the intervals to minimum and maximum values in the DataSource such that points near the left and right edges appear without getting cut.

ASP

    <ej:Chart ID="Chart1" runat="server">
        <PrimaryXAxis RangePadding="Additional"></PrimaryXAxis>
        . . . . . . . . . .
    </ej:Chart>

 

The following screenshot displays the Chart with the range padding set to Additional.

The Chart with the range padding set to Additional

Figure 3: Range padding set to Additional

Round

This rounds the axis range to the nearest possible value.

ASP

    <ej:Chart ID="Chart1" runat="server">
        <PrimaryXAxis RangePadding="Round"></PrimaryXAxis> 
        . . . . . . . . . . .
    </ej:Chart>

 

The following screenshot displays the Chart with the range padding set to Round.

The Chart with the range padding set to Round

Figure 4: Range padding set to Round

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied