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

Creates series for the Sparkline<T>.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

TModel

The type of the data item to which the chart is bound to

Syntax:

C#
public class SparklineSeriesFactory<TModel> where TModel : class

Inheritance: objectSparklineSeriesFactory<TModel>

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

Constructors

Initializes a new instance of the SparklineSeriesFactory<TModel> class.

C#
public SparklineSeriesFactory(ISeriesContainer container)
Parameters:containerISeriesContainer

The container.

Properties

The parent Sparkline

C#
public ISeriesContainer Container { get; }

Methods

Defines area series bound to inline data.

C#
public virtual ChartAreaSeriesBuilder<TModel> Area(IEnumerable data)
Parameters:dataIEnumerable

The data to bind to

Returns:

ChartAreaSeriesBuilder<TModel>

Defines bound area series.

C#
public virtual ChartAreaSeriesBuilder<TModel> Area(string memberName, string categoryMemberName = null)
Parameters:memberNamestring

The name of the value member.

categoryMemberNamestring

The name of the category member.

Returns:

ChartAreaSeriesBuilder<TModel>

Defines bound area series.

C#
public virtual ChartAreaSeriesBuilder<TModel> Area(Type memberType, string memberName, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:memberTypeType

The type of the value member.

memberNamestring

The name of the value member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartAreaSeriesBuilder<TModel>

Defines bound area series.

C#
public virtual ChartAreaSeriesBuilder<TModel> Area<TValue, TCategory>(Expression<Func<TModel, TValue>> expression, Expression<Func<TModel, TCategory>> categoryExpression, Expression<Func<TModel, string>> noteTextExpression)
Parameters:expressionExpression<Func<TModel, TValue>>

The expression used to extract the value from the chart model.

categoryExpressionExpression<Func<TModel, TCategory>>

The expression used to extract the category from the chart model.

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the note text from the chart model.

Returns:

ChartAreaSeriesBuilder<TModel>

Defines bound area series.

C#
public virtual ChartAreaSeriesBuilder<TModel> Area<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

The expression used to extract the value from the chart model.

Returns:

ChartAreaSeriesBuilder<TModel>

Defines bar series bound to inline data.

C#
public virtual ChartBarSeriesBuilder<TModel> Bar(IEnumerable data)
Parameters:dataIEnumerable

The data to bind to.

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Bar(string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:valueMemberNamestring

The name of the value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Bar(Type memberType, string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:memberTypeType

The type of the value member.

valueMemberNamestring

The name of the value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Bar<TValue, TCategory>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null, Expression<Func<TModel, TCategory>> categoryExpression = null, Expression<Func<TModel, string>> noteTextExpression = null)
Parameters:valueExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

categoryExpressionExpression<Func<TModel, TCategory>>

The expression used to extract the point category from the chart model

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the point note text from the chart model

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Bar<TValue>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null)
Parameters:valueExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBulletSeriesBuilder<TModel> Bullet(string currentMemberName, string targetMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:currentMemberNamestring

The name of the current value member.

targetMemberNamestring

The name of the target value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBulletSeriesBuilder<TModel>

Defines bound bullet series.

C#
public virtual ChartBulletSeriesBuilder<TModel> Bullet(Type memberType, string currentMemberName, string targetMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:memberTypeType

The type of the current value member.

currentMemberNamestring

The name of the current value member.

targetMemberNamestring

The name of the target value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBulletSeriesBuilder<TModel>

Defines bound bullet series.

C#
public virtual ChartBulletSeriesBuilder<TModel> Bullet<TValue, TCategory>(Expression<Func<TModel, TValue>> currentExpression, Expression<Func<TModel, TValue>> targetExpression, Expression<Func<TModel, string>> colorExpression = null, Expression<Func<TModel, TCategory>> categoryExpression = null, Expression<Func<TModel, string>> noteTextExpression = null)
Parameters:currentExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point current value from the chart model

targetExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point target value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

categoryExpressionExpression<Func<TModel, TCategory>>

The expression used to extract the category from the chart model.

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the point note text from the chart model

Returns:

ChartBulletSeriesBuilder<TModel>

Defines bound bullet series.

C#
public virtual ChartBulletSeriesBuilder<TModel> Bullet<TValue>(Expression<Func<TModel, TValue>> currentExpression, Expression<Func<TModel, TValue>> targetExpression, Expression<Func<TModel, string>> colorExpression = null, Expression<Func<TModel, string>> noteTextExpression = null)
Parameters:currentExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point current value from the chart model

targetExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point target value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the point note text from the chart model

Returns:

ChartBulletSeriesBuilder<TModel>

Defines bar series bound to inline data.

C#
public virtual ChartBarSeriesBuilder<TModel> Column(IEnumerable data)
Parameters:dataIEnumerable

The data to bind to

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Column(string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:valueMemberNamestring

The name of the value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound bar series.

C#
public virtual ChartBarSeriesBuilder<TModel> Column(Type memberType, string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:memberTypeType

The type of the value member.

valueMemberNamestring

The name of the value member.

colorMemberNamestring

The name of the color member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound column series.

C#
public virtual ChartBarSeriesBuilder<TModel> Column<TValue, TCategory>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null, Expression<Func<TModel, TCategory>> categoryExpression = null, Expression<Func<TModel, string>> noteTextExpression = null)
Parameters:valueExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

categoryExpressionExpression<Func<TModel, TCategory>>

The expression used to extract the point category from the chart model

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the point note text from the chart model

Returns:

ChartBarSeriesBuilder<TModel>

Defines bound column series.

C#
public virtual ChartBarSeriesBuilder<TModel> Column<TValue>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null)
Parameters:valueExpressionExpression<Func<TModel, TValue>>

The expression used to extract the point value from the chart model

colorExpressionExpression<Func<TModel, string>>

The expression used to extract the point color from the chart model

Returns:

ChartBarSeriesBuilder<TModel>

Defines line series bound to inline data.

C#
public virtual ChartLineSeriesBuilder<TModel> Line(IEnumerable data)
Parameters:dataIEnumerable

The data to bind to

Returns:

ChartLineSeriesBuilder<TModel>

Defines bound line series.

C#
public virtual ChartLineSeriesBuilder<TModel> Line(string memberName, string categoryMemberName = null)
Parameters:memberNamestring

The name of the value member.

categoryMemberNamestring

The name of the category member.

Returns:

ChartLineSeriesBuilder<TModel>

Defines bound line series.

C#
public virtual ChartLineSeriesBuilder<TModel> Line(Type memberType, string memberName, string categoryMemberName = null, string noteTextMemberName = null)
Parameters:memberTypeType

The type of the value member.

memberNamestring

The name of the value member.

categoryMemberNamestring

The name of the category member.

noteTextMemberNamestring

The name of the note text member.

Returns:

ChartLineSeriesBuilder<TModel>

Defines bound line series.

C#
public virtual ChartLineSeriesBuilder<TModel> Line<TValue, TCategory>(Expression<Func<TModel, TValue>> expression, Expression<Func<TModel, TCategory>> categoryExpression, Expression<Func<TModel, string>> noteTextExpression)
Parameters:expressionExpression<Func<TModel, TValue>>

The expression used to extract the value from the chart model.

categoryExpressionExpression<Func<TModel, TCategory>>

The expression used to extract the category from the chart model.

noteTextExpressionExpression<Func<TModel, string>>

The expression used to extract the note text from the chart model.

Returns:

ChartLineSeriesBuilder<TModel>

Defines bound line series.

C#
public virtual ChartLineSeriesBuilder<TModel> Line<TValue>(Expression<Func<TModel, TValue>> expression)
Parameters:expressionExpression<Func<TModel, TValue>>

The expression used to extract the series value from the chart model

Returns:

ChartLineSeriesBuilder<TModel>

Defines pie series bound to inline data.

C#
public virtual ChartPieSeriesBuilder<TModel> Pie(IEnumerable data)
Parameters:dataIEnumerable

The data to bind to

Returns:

ChartPieSeriesBuilder<TModel>

Defines bound pie series.

C#
public virtual ChartPieSeriesBuilder<TModel> Pie(string valueMemberName, string categoryMemberName, string colorMemberName = null, string explodeMemberName = null, string visibleInLegendMemberName = null)
Parameters:valueMemberNamestringcategoryMemberNamestringcolorMemberNamestringexplodeMemberNamestringvisibleInLegendMemberNamestringReturns:

ChartPieSeriesBuilder<TModel>

Defines bound pie series.

C#
public virtual ChartPieSeriesBuilder<TModel> Pie(Type memberType, string valueMemberName, string categoryMemberName, string colorMemberName = null, string explodeMemberName = null, string visibleInLegendMemberName = null)
Parameters:memberTypeTypevalueMemberNamestringcategoryMemberNamestringcolorMemberNamestringexplodeMemberNamestringvisibleInLegendMemberNamestringReturns:

ChartPieSeriesBuilder<TModel>

Defines bound pie series.

C#
public virtual ChartPieSeriesBuilder<TModel> Pie<TValue>(Expression<Func<TModel, TValue>> expressionValue, Expression<Func<TModel, string>> expressionCategory, Expression<Func<TModel, string>> expressionColor = null, Expression<Func<TModel, bool>> expressionExplode = null, Expression<Func<TModel, bool>> expressionVisibleInLegend = null)
Parameters:expressionValueExpression<Func<TModel, TValue>>expressionCategoryExpression<Func<TModel, string>>expressionColorExpression<Func<TModel, string>>expressionExplodeExpression<Func<TModel, bool>>expressionVisibleInLegendExpression<Func<TModel, bool>>Returns:

ChartPieSeriesBuilder<TModel>

In this article
DefinitionConstructorsSparklineSeriesFactory(ISeriesContainer)PropertiesContainerMethodsArea(IEnumerable)Area(string, string)Area(Type, string, string, string)Area<TValue, TCategory>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, TCategory>>, Expression<Func<TModel, string>>)Area<TValue>(Expression<Func<TModel, TValue>>)Bar(IEnumerable)Bar(string, string, string, string)Bar(Type, string, string, string, string)Bar<TValue, TCategory>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>, Expression<Func<TModel, TCategory>>, Expression<Func<TModel, string>>)Bar<TValue>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>)Bullet(string, string, string, string, string)Bullet(Type, string, string, string, string, string)Bullet<TValue, TCategory>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>, Expression<Func<TModel, TCategory>>, Expression<Func<TModel, string>>)Bullet<TValue>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>, Expression<Func<TModel, string>>)Column(IEnumerable)Column(string, string, string, string)Column(Type, string, string, string, string)Column<TValue, TCategory>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>, Expression<Func<TModel, TCategory>>, Expression<Func<TModel, string>>)Column<TValue>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>)Line(IEnumerable)Line(string, string)Line(Type, string, string, string)Line<TValue, TCategory>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, TCategory>>, Expression<Func<TModel, string>>)Line<TValue>(Expression<Func<TModel, TValue>>)Pie(IEnumerable)Pie(string, string, string, string, string)Pie(Type, string, string, string, string, string)Pie<TValue>(Expression<Func<TModel, TValue>>, Expression<Func<TModel, string>>, Expression<Func<TModel, string>>, Expression<Func<TModel, bool>>, Expression<Func<TModel, bool>>)
Not finding the help you need?
Contact Support