blazor-devexpress-dot-blazor-dot-dxpiechart-1-38207966.md
Specifies the angle at which the chart lays out the first series slice.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(0)]
[Parameter]
public double StartAngle { get; set; }
| Type | Default | Description |
|---|---|---|
| Double | 0 |
The start angle in degrees.
|
Use the StartAngle property to specify the angle at which the chart lays out the first series slice. Positive property values turn the start line counterclockwise, negative values – clockwise.
The following example sets the start line angle to 45 degrees:
<DxPieChart Data="@SalesData"
StartAngle="45"
T="SaleInfo">
<DxPieChartSeries T="SaleInfo"
TArgument="string"
TValue="double"
ValueField="si => si.Amount"
ArgumentField="si => si.Region"
SummaryMethod="Enumerable.Sum">
<DxChartSeriesLabel Visible="showLabels"
Position="labelPosition"
ValueFormat="ChartElementFormat.Thousands(1)">
<DxChartSeriesLabelConnector Visible="true" />
</DxChartSeriesLabel>
</DxPieChartSeries>
@* ... *@
</DxPieChart>
@code {
IEnumerable<SaleInfo> SalesData;
bool showLabels = true;
RelativePosition labelPosition = RelativePosition.Outside;
protected override async Task OnInitializedAsync() {
SalesData = await Sales.GetSalesAsync();
}
}
For additional information on how to arrange series slices, refer to the following topic: DxPieChart - Slice Layout.
See Also