Back to Devexpress

ChartView.FirstSliceAngle Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartview-a0fac744.md

latest4.4 KB
Original Source

ChartView.FirstSliceAngle Property

Gets or sets the angle of the first slice in a pie or doughnut chart.

Namespace : DevExpress.Spreadsheet.Charts

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
int FirstSliceAngle { get; set; }
vb
Property FirstSliceAngle As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the angle, in degrees, by which the slice is rotated.

|

Remarks

Note that the order in which data points are plotted on a pie or doughnut chart is determined by the order of data on the worksheet.

The angle specified by the FirstSliceAngle property is measured in degrees and clockwise from the top.

45°-45° (315° in Microsoft® Excel®)

The following code snippets (auto-collected from DevExpress Examples) contain references to the FirstSliceAngle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/Charts.cs#L29

csharp
// Rotate the pie chart view
chart.Views[0].FirstSliceAngle = 100;

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/Charts.cs#L29

csharp
// Rotate the pie chart view
chart.Views[0].FirstSliceAngle = 100;

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.cs#L41

csharp
// Rotate the pie chart view
chart.Views[0].FirstSliceAngle = 100;

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/Charts.vb#L33

vb
' Rotate the pie chart view
chart.Views(0).FirstSliceAngle = 100

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/Charts.vb#L32

vb
' Rotate the pie chart view
chart.Views(0).FirstSliceAngle = 100

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.vb#L41

vb
' Rotate the pie chart view
chart.Views(0).FirstSliceAngle = 100

See Also

ChartView Interface

ChartView Members

DevExpress.Spreadsheet.Charts Namespace