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

The base class for data-bound Chart series.

Definition

Constructors

Initializes a new instance of the ChartBoundSeries<TModel, TValue> class.

C#
protected ChartBoundSeries()

Initializes a new instance of the ChartBoundSeries<TModel, TValue> class.

C#
protected ChartBoundSeries(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 point value 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.

Initializes a new instance of the ChartBoundSeries<TModel, TValue> class.

C#
protected ChartBoundSeries(IEnumerable data)
Parameters:dataIEnumerable

The series data.

Properties

Category

Func<TModel, TCategory>

Gets a function which returns the category of the property to which the column is bound to.

C#
public Func<TModel, TCategory> Category { get; }

Gets the model data category member name.

C#
public string CategoryMember { get; set; }
Property Value:

The model data category member name.

Implements: IChartBoundSeries.CategoryMember

Gets the model color member name.

C#
public string ColorMember { get; set; }
Property Value:

The model color member name.

Implements: IChartBoundSeries.ColorMember

The data used for binding.

C#
public IEnumerable Data { get; set; }

Implements: IChartBoundSeries.Data

Gets the model data member name.

C#
public string Member { get; set; }
Property Value:

The model data member name.

Implements: IChartBoundSeries.Member

Gets the model data note text member name.

C#
public string NoteTextMember { get; set; }
Property Value:

The model data note text member name.

Implements: IChartBoundSeries.NoteTextMember