Back to Devexpress

PivotGridDataSourceOptions.MaxAllowedPointCountInSeries Property

corelibraries-devexpress-dot-xtracharts-dot-pivotgriddatasourceoptions-9f8da754.md

latest4.2 KB
Original Source

PivotGridDataSourceOptions.MaxAllowedPointCountInSeries Property

Limits the number of incoming points in 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 MaxAllowedPointCountInSeries { get; set; }
vb
Public Property MaxAllowedPointCountInSeries As Integer

Property Value

TypeDescription
Int32

An integer value, specifying the maximum number of points in the Chart’s series.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to MaxAllowedPointCountInSeries
WinForms ControlsChartControl

.PivotGridDataSourceOptions .MaxAllowedPointCountInSeries

| | ASP.NET MVC Extensions | ChartControlSettings |

.PivotGridDataSourceOptions .MaxAllowedPointCountInSeries

| | .NET Reporting Tools | XRChart |

.PivotGridDataSourceOptions .MaxAllowedPointCountInSeries

| | ASP.NET Web Forms Controls | WebChartControl |

.PivotGridDataSourceOptions .MaxAllowedPointCountInSeries

|

Remarks

Use the MaxAllowedPointCountInSeries 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 MaxAllowedPointCountInSeries property returns false , when trying to get its value.

To obtain both the actual and available number of series (e.g. to notify a user that the Chart has been cut), use the PivotGridSeriesExcludedEventArgs.ActualSeriesCount and PivotGridSeriesExcludedEventArgs.AvailableSeriesCount properties.

To limit the number of series, use the PivotGridDataSourceOptions.MaxAllowedSeriesCount property.

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

See Also

MaxAllowedSeriesCount

Integrate the WinForms Chart with the Pivot Grid Control

PivotGridDataSourceOptions Class

PivotGridDataSourceOptions Members

DevExpress.XtraCharts Namespace