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:
public class SparklineSeriesFactory<TModel> where TModel : class
Inheritance: objectSparklineSeriesFactory<TModel>
Inherited Members
Constructors
Initializes a new instance of the SparklineSeriesFactory<TModel> class.
public SparklineSeriesFactory(ISeriesContainer container)
The container.
Properties
The parent Sparkline
public ISeriesContainer Container { get; }
Methods
Defines area series bound to inline data.
public virtual ChartAreaSeriesBuilder<TModel> Area(IEnumerable data)
The data to bind to
Returns:ChartAreaSeriesBuilder<TModel>
Defines bound area series.
public virtual ChartAreaSeriesBuilder<TModel> Area(string memberName, string categoryMemberName = null)
The name of the value member.
categoryMemberNamestringThe name of the category member.
Returns:ChartAreaSeriesBuilder<TModel>
Defines bound area series.
public virtual ChartAreaSeriesBuilder<TModel> Area(Type memberType, string memberName, string categoryMemberName = null, string noteTextMemberName = null)
The type of the value member.
memberNamestringThe name of the value member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartAreaSeriesBuilder<TModel>
Defines bound area series.
public virtual ChartAreaSeriesBuilder<TModel> Area<TValue, TCategory>(Expression<Func<TModel, TValue>> expression, Expression<Func<TModel, TCategory>> categoryExpression, Expression<Func<TModel, string>> noteTextExpression)
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.
public virtual ChartAreaSeriesBuilder<TModel> Area<TValue>(Expression<Func<TModel, TValue>> expression)
The expression used to extract the value from the chart model.
Returns:ChartAreaSeriesBuilder<TModel>
Defines bar series bound to inline data.
public virtual ChartBarSeriesBuilder<TModel> Bar(IEnumerable data)
The data to bind to.
Returns:ChartBarSeriesBuilder<TModel>
Defines bound bar series.
public virtual ChartBarSeriesBuilder<TModel> Bar(string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The name of the value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBarSeriesBuilder<TModel>
Defines bound bar series.
public virtual ChartBarSeriesBuilder<TModel> Bar(Type memberType, string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The type of the value member.
valueMemberNamestringThe name of the value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBarSeriesBuilder<TModel>
Defines bound bar series.
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)
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.
public virtual ChartBarSeriesBuilder<TModel> Bar<TValue>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null)
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.
public virtual ChartBulletSeriesBuilder<TModel> Bullet(string currentMemberName, string targetMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The name of the current value member.
targetMemberNamestringThe name of the target value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBulletSeriesBuilder<TModel>
Defines bound bullet series.
public virtual ChartBulletSeriesBuilder<TModel> Bullet(Type memberType, string currentMemberName, string targetMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The type of the current value member.
currentMemberNamestringThe name of the current value member.
targetMemberNamestringThe name of the target value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBulletSeriesBuilder<TModel>
Defines bound bullet series.
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)
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.
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)
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.
public virtual ChartBarSeriesBuilder<TModel> Column(IEnumerable data)
The data to bind to
Returns:ChartBarSeriesBuilder<TModel>
Defines bound bar series.
public virtual ChartBarSeriesBuilder<TModel> Column(string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The name of the value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBarSeriesBuilder<TModel>
Defines bound bar series.
public virtual ChartBarSeriesBuilder<TModel> Column(Type memberType, string valueMemberName, string colorMemberName = null, string categoryMemberName = null, string noteTextMemberName = null)
The type of the value member.
valueMemberNamestringThe name of the value member.
colorMemberNamestringThe name of the color member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartBarSeriesBuilder<TModel>
Defines bound column series.
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)
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.
public virtual ChartBarSeriesBuilder<TModel> Column<TValue>(Expression<Func<TModel, TValue>> valueExpression, Expression<Func<TModel, string>> colorExpression = null)
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.
public virtual ChartLineSeriesBuilder<TModel> Line(IEnumerable data)
The data to bind to
Returns:ChartLineSeriesBuilder<TModel>
Defines bound line series.
public virtual ChartLineSeriesBuilder<TModel> Line(string memberName, string categoryMemberName = null)
The name of the value member.
categoryMemberNamestringThe name of the category member.
Returns:ChartLineSeriesBuilder<TModel>
Defines bound line series.
public virtual ChartLineSeriesBuilder<TModel> Line(Type memberType, string memberName, string categoryMemberName = null, string noteTextMemberName = null)
The type of the value member.
memberNamestringThe name of the value member.
categoryMemberNamestringThe name of the category member.
noteTextMemberNamestringThe name of the note text member.
Returns:ChartLineSeriesBuilder<TModel>
Defines bound line series.
public virtual ChartLineSeriesBuilder<TModel> Line<TValue, TCategory>(Expression<Func<TModel, TValue>> expression, Expression<Func<TModel, TCategory>> categoryExpression, Expression<Func<TModel, string>> noteTextExpression)
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.
public virtual ChartLineSeriesBuilder<TModel> Line<TValue>(Expression<Func<TModel, TValue>> expression)
The expression used to extract the series value from the chart model
Returns:ChartLineSeriesBuilder<TModel>
Defines pie series bound to inline data.
public virtual ChartPieSeriesBuilder<TModel> Pie(IEnumerable data)
The data to bind to
Returns:ChartPieSeriesBuilder<TModel>
Defines bound pie series.
public virtual ChartPieSeriesBuilder<TModel> Pie(string valueMemberName, string categoryMemberName, string colorMemberName = null, string explodeMemberName = null, string visibleInLegendMemberName = null)
ChartPieSeriesBuilder<TModel>
Defines bound pie series.
public virtual ChartPieSeriesBuilder<TModel> Pie(Type memberType, string valueMemberName, string categoryMemberName, string colorMemberName = null, string explodeMemberName = null, string visibleInLegendMemberName = null)
ChartPieSeriesBuilder<TModel>
Defines bound pie series.
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)
ChartPieSeriesBuilder<TModel>