Back to Devexpress

PivotGridDataSourceOptions.MaxAllowedSeriesCount Property

corelibraries-devexpress-dot-xtracharts-dot-pivotgriddatasourceoptions-80b851af.md

latest4.1 KB
Original Source

PivotGridDataSourceOptions.MaxAllowedSeriesCount Property

Limits the number of a Chart’s series that are auto-created, based on the associated Pivot Grid.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public int MaxAllowedSeriesCount { get; set; }
vb
Public Property MaxAllowedSeriesCount As Integer

Property Value

TypeDescription
Int32

An integer value, specifying the maximum number of series in the Chart; 0 for no limit. The default is 10.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to MaxAllowedSeriesCount
WinForms ControlsChartControl

.PivotGridDataSourceOptions .MaxAllowedSeriesCount

| | ASP.NET MVC Extensions | ChartControlSettings |

.PivotGridDataSourceOptions .MaxAllowedSeriesCount

| | .NET Reporting Tools | XRChart |

.PivotGridDataSourceOptions .MaxAllowedSeriesCount

| | ASP.NET Web Forms Controls | WebChartControl |

.PivotGridDataSourceOptions .MaxAllowedSeriesCount

|

Remarks

Use the MaxAllowedSeriesCount property, to avoid an untidy chart when too much data is obtained from its associated Pivot Grid.

Note

If the Chart’s data source is not a Pivot Grid, trying to set this property causes a NotSupportedException, and the MaxAllowedSeriesCount property returns false when trying to get its value.

To obtain both the actual and available number of points in a series (e.g. to notify a user that the Chart has been cut), use the PivotGridSeriesPointsExcludedEventArgs.ActualSeriesPointCount and PivotGridSeriesPointsExcludedEventArgs.AvailableSeriesPointCount properties.

To limit the number of points in a Chart’s series, use the PivotGridDataSourceOptions.MaxAllowedPointCountInSeries property.

For more information, see Pivot Charting (Integration with a Pivot Grid Control).

See Also

MaxAllowedPointCountInSeries

Integrate the WinForms Chart with the Pivot Grid Control

PivotGridDataSourceOptions Class

PivotGridDataSourceOptions Members

DevExpress.XtraCharts Namespace