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

Defines the fluent interface for configuring the chart note line.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartNoteLineBuilder

Inheritance: objectChartNoteLineBuilder

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 ChartNoteLineBuilder class.

C#
public ChartNoteLineBuilder(ChartNoteLine line)
Parameters:lineChartNoteLine

The connectors configuration.

Methods

Sets the line color

C#
public ChartNoteLineBuilder Color(string color)
Parameters:colorstring

The line color.

Returns:

ChartNoteLineBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Bar(s => s.Sales)
.Note(note => note.Line(line => line.Color("red")))
)
)

Sets the connectors padding

C#
public ChartNoteLineBuilder Length(int length)
Parameters:lengthint

The connectors length.

Returns:

ChartNoteLineBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Bar(s => s.Sales)
.Note(note => note.Line(line => line.Length(15)))
)
)

Sets the line width

C#
public ChartNoteLineBuilder Width(int width)
Parameters:widthint

The line width.

Returns:

ChartNoteLineBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Bar(s => s.Sales)
.Note(note => note.Line(line => line.Width(2)))
)
)