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

Defines the fluent interface for configuring the chart note.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartNoteBuilder

Inheritance: objectChartNoteBuilder

Derived Classes: ChartAxisNoteItemBuilder

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

C#
public ChartNoteBuilder(ChartNote note)
Parameters:noteChartNote

The note configuration.

Methods

Sets the icon configuration of the note

C#
public ChartNoteBuilder Icon(Action<ChartMarkersBuilder> configurator)
Parameters:configuratorAction<ChartMarkersBuilder>

The icon configuration.

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note.Icon(icon =&gt; icon.Size(10)))
)
)

Sets the label configuration of the note

C#
public ChartNoteBuilder Label(Action<ChartNoteLabelBuilder> configurator)
Parameters:configuratorAction<ChartNoteLabelBuilder>

The label configurator.

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note
.Label(label =&gt; label.Position(ChartNoteLabelPosition.Inside))
)
)
)

Sets the line configuration of the note

C#
public ChartNoteBuilder Line(Action<ChartNoteLineBuilder> configurator)
Parameters:configuratorAction<ChartNoteLineBuilder>

The line configuration.

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note
.Line(line =&gt; line.Width(2))
)
)
)

Sets the note position.

C#
public ChartNoteBuilder Position(ChartNotePosition? position)
Parameters:positionChartNotePosition?

The note position.

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note.Position(ChartNotePosition.Left))
)
)

Sets the note visual handler

C#
public ChartNoteBuilder Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note.Visual(
@&lt;text&gt;
function(e) {
return e.createVisual(); // returns the default visual
}
&lt;/text&gt;
)
)
)
)

Sets the note visual handler

C#
public ChartNoteBuilder Visual(string handler)
Parameters:handlerstring

The JavaScript handler function name.

Returns:

ChartNoteBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(note =&gt; note.Visual("noteHandler"))
)
)