New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI ChartSeriesAggregateSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartSeriesAggregateSettings<T> where T : class

Inheritance: objectChartSeriesAggregateSettings<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public ChartSeriesAggregateSettings()

Properties

Chart member.

C#
public Chart<T> Chart { get; set; }

Specifies the aggregate function to apply for the Close field.

C#
public ChartSeriesAggregate? Close { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.Close(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Close field.

C#
public ClientHandlerDescriptor CloseHandler { get; set; }
Example:
C#
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}

@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.CloseHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the High field.

C#
public ChartSeriesAggregate? High { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.High(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the High field.

C#
public ClientHandlerDescriptor HighHandler { get; set; }
Example:
C#
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}

@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.HighHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Low field.

C#
public ChartSeriesAggregate? Low { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.Low(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Lower field.

C#
public ChartSeriesAggregate? Lower { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Lower(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Lower field.

C#
public ClientHandlerDescriptor LowerHandler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.LowerHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Low field.

C#
public ClientHandlerDescriptor LowHandler { get; set; }
Example:
C#
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}

@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.LowHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Mean field.

C#
public ChartSeriesAggregate? Mean { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Mean(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Mean field.

C#
public ClientHandlerDescriptor MeanHandler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.MeanHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Median field.

C#
public ChartSeriesAggregate? Median { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Median(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Median field.

C#
public ClientHandlerDescriptor MedianHandler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.MedianHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Open field.

C#
public ChartSeriesAggregate? Open { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.Open(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Open field.

C#
public ClientHandlerDescriptor OpenHandler { get; set; }
Example:
C#
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}

@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.StockData&gt;()
.Name("chart")
.Series(series =&gt;
{
series.Candlestick(s =&gt; s.Open, s =&gt; s.High, s =&gt; s.Low, s =&gt; s.Close)
.CategoryField("Year")
.Aggregate(aggregate =&gt; aggregate.OpenHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Outliers field.

C#
public ChartSeriesAggregate? Outliers { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Outliers(ChartSeriesAggregate.Max));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Outliers field.

C#
public ClientHandlerDescriptor OutliersHandler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.OutliersHandler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Q1 field.

C#
public ChartSeriesAggregate? Q1 { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Q1(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Q1 field.

C#
public ClientHandlerDescriptor Q1Handler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Q1Handler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Q3 field.

C#
public ChartSeriesAggregate? Q3 { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Q3(ChartSeriesAggregate.Avg));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Q3 field.

C#
public ClientHandlerDescriptor Q3Handler { get; set; }
Example:
C#
&lt;script&gt;
function getAggregate(values, series, dataItems, category)
{
// calculate and return a single value or data item containing the result
}
&lt;/script&gt;
@(Html.Kendo().Chart&lt;Kendo.Mvc.Examples.Models.OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Q3Handler("getAggregate"));
})
.Zoomable(true)
)

Specifies the aggregate function to apply for the Upper field.

C#
public ChartSeriesAggregate? Upper { get; set; }
Example:
C#
@(Html.Kendo().Chart&lt;OzoneConcentration&gt;()
.Name("chart")
.Series(series =&gt;
{
series.BoxPlot(
l =&gt; l.Lower,
q1 =&gt; q1.Q1,
median =&gt; median.Median,
q3 =&gt; q3.Q3,
upper =&gt; upper.Upper,
mean =&gt; mean.Mean,
outliers =&gt; outliers.Outliers)
.Aggregate(a =&gt; a.Upper(ChartSeriesAggregate.Max));
})
.Zoomable(true)
)

Specifies the name of a user-defined client-side functon that will calculate the aggregate for the Upper field.

C#
public ClientHandlerDescriptor UpperHandler { get; set; }

Methods

Serializes the settings to a Dictionary.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serializes the settings to a Dictionary.

C#
protected Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>