What Changed
We marked the DxChartCommonSeries.AggregationMethod and DxChartSeries.AggregationMethod properties as obsolete. Now, you can use the DxChartCommonSeries.SummaryMethod and DxChartSeries.SummaryMethod properties instead.
Reasons for Change
The names of the new SummaryMethod
properties better describe the properties' purpose. These properties specify a method that calculates summaries for chart points with the same argument values.
Meanwhile, in this release, we used the Aggregation term for a new chart feature - data aggregation. Now, you can specify an aggregation method to group series points with different argument values.
Impact on Existing Apps
This change affects applications if the AggregationMethod
properties are specified.
Razor<DxChart Data="@ChartsData">
<DxChartCommonSeries NameField="@((SaleInfo s) => s.Date.Year)"
Filter="@((SaleInfo s) => s.Region == "Europe")"
AggregationMethod="Enumerable.Sum"
ArgumentField="@((SaleInfo s) => s.City)"
ValueField="@((SaleInfo s) => s.Amount)"
SeriesType="@(ChartSeriesType.Bar)" />
@*...*@
<DxChartAreaSeries Name="2017"
Filter="@((SaleInfo s) => s.Date.Year == 2017)"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)"
AggregationMethod="Enumerable.Sum" />
</DxChart>
How to Update Existing Apps
Replace AggregationMethod
with SummaryMethod
.
Razor<DxChart Data="@ChartsData">
<DxChartCommonSeries NameField="@((SaleInfo s) => s.Date.Year)"
Filter="@((SaleInfo s) => s.Region == "Europe")"
SummaryMethod="Enumerable.Sum"
ArgumentField="@((SaleInfo s) => s.City)"
ValueField="@((SaleInfo s) => s.Amount)"
SeriesType="@(ChartSeriesType.Bar)" />
@*...*@
<DxChartAreaSeries Name="2017"
Filter="@((SaleInfo s) => s.Date.Year == 2017)"
ArgumentField="@(s => s.City)"
ValueField="@(s => s.Amount)"
SummaryMethod="Enumerable.Sum" />
</DxChart>