Skip to main content
All docs
V24.2

DxChartAxisLabel.IndentFromAxis Property

Specifies the indent between an axis and its labels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(10)]
[Parameter]
public double IndentFromAxis { get; set; }

Property Value

Type Default Description
Double 10

The indent in pixels.

Remarks

The following example changes the indent between the argument and value axes and their labels:

<DxChart Data="@WeatherForecasts"
         CustomizeSeriesPoint="@PreparePointColor"
         Width="100%">
    <DxChartTitle Text="Annual Weather in New York" />
    <DxChartLineSeries SummaryMethod="@(i => i.Average())"
                        Color="@Color.Gray"
                        ValueField="@((DetailedWeatherSummary i) => i.AverageTemperatureF)"
                        ArgumentField="@(i => new DateTime(2000, i.Date.Month, 1))"
                        Name="Temperature, °F"
                        Filter="@((DetailedWeatherSummary  i) => i.City == "NEW YORK")" />
    <DxChartLegend Visible="false" />
    <DxChartValueAxis>
        <DxChartAxisTitle Text="Temperature, °F" />
        <DxChartAxisLabel IndentFromAxis="30" />
    </DxChartValueAxis>
    <DxChartArgumentAxis>
        <DxChartAxisLabel Format="ChartElementFormat.Month"
                          IndentFromAxis="30" />
    </DxChartArgumentAxis>
</DxChart>

DxChartAxisLabel - Indent from axis

See Also