The event handler receives an argument of type PivotGridSeriesPointsExcludedEventArgs containing data related to this event.
When a PivotGridControl is assigned to the chart's DataSource property, the maximum number of points allowed for an auto-created series is limited by the DevExpress.XtraCharts.PivotGridDataSourceOptions.MaxAllowedPointCountInSeries property value.
NoteA zero value for this property specifies that the number of points is not restricted.
Handle the PivotGridSeriesPointsExcluded event, to obtain both the current and total number of points (via the DevExpress.XtraCharts.PivotGridSeriesPointsExcludedEventArgs.ActualSeriesPointCount and DevExpress.XtraCharts.PivotGridSeriesPointsExcludedEventArgs.AvailableSeriesPointCount properties), e.g. to notify a user that the number of points has been forcibly limited. An auto-created series can be accessed via the DevExpress.XtraCharts.PivotGridSeriesPointsExcludedEventArgs.Series property.
To limit the number of series in a chart, use the similar DevExpress.XtraCharts.PivotGridDataSourceOptions.MaxAllowedSeriesCount property and the corresponding PivotGridSeriesExcluded event handler.
For more information, see Pivot Charting (Integration with a Pivot Grid Control).