DxChartSeriesLabel.RadialOffset Property
Specifies the radial offset of pie series labels.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(0)]
[Parameter]
public double RadialOffset { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Double | 0 | The radial offset in pixels. |
Remarks
The RadialOffset
property value radially shifts series labels. A positive value shifts labels away from the chart center, a negative value – towards the center.
Note
The RadialOffset
property value applies to DxPieChartSeries labels only.
The following code snippet uses a spin editor to shift series labels radially:
<label><strong>Radial Offset, px: </strong></label>
<DxSpinEdit @bind-Value="@CurrentRadialOffset" Increment="10" />
<DxPieChart Data="@DataSource"
Height="350px">
<DxPieChartSeries ArgumentField="@((StatisticPoint v) => v.Country)"
ValueField="@((StatisticPoint v) => v.Population24)"
Name="2024">
<DxChartSeriesLabel Visible="true"
RadialOffset="@CurrentRadialOffset"
FormatPattern="{argument}: {value}">
<DxChartSeriesLabelConnector Visible="true" />
</DxChartSeriesLabel>
</DxPieChartSeries>
<DxChartLegend Visible="false" />
<DxChartTitle Text="Population by European Country, 2024" />
</DxPieChart>
@code{
double CurrentRadialOffset { get; set; } = 0;
IEnumerable<StatisticPoint> DataSource = Enumerable.Empty<StatisticPoint>();
protected override void OnInitialized() {
DataSource = GenerateData();
}
}
See Also