Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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:

razor
<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