Back to Devexpress

ChartObject.PrimaryAxes Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartobject-da43fd66.md

latest5.2 KB
Original Source

ChartObject.PrimaryAxes Property

Provides access to a collection of primary axes.

Namespace : DevExpress.Spreadsheet.Charts

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
AxisCollection PrimaryAxes { get; }
vb
ReadOnly Property PrimaryAxes As AxisCollection

Property Value

TypeDescription
AxisCollection

An AxisCollection object containing primary axes on the chart or null ( Nothing in Visual Basic) if there are no primary axes.

|

Remarks

Charts of different types may have a different number of primary axes. For example, a chart of the ChartType.Pie has no axes. A chart of the ChartType.ColumnClustered type contains two primary axes - the category axis and the value axis. A chart of the ChartType.Column3DStandard type has three axes - the category axis, the value axis and the series axis. However, a chart may have only one group of primary axes (a group consists of a category, a value and (only for certain 3D chart types) a series axis).

A chart may have a collection of ChartObject.SecondaryAxes in addition to primary axes.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PrimaryAxes 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.

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/AxesActions.cs#L32

csharp
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/AxesActions.cs#L22

csharp
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/AxesActions.cs#L22

csharp
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/AxesActions.vb#L37

vb
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/AxesActions.vb#L26

vb
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/AxesActions.vb#L25

vb
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False

See Also

SecondaryAxes

ChartObject Interface

ChartObject Members

DevExpress.Spreadsheet.Charts Namespace