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

Defines the fluent interface for configuring notes of the axis.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartAxisNotesBuilder

Inheritance: objectChartAxisNotesBuilder

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

C#
public ChartAxisNotesBuilder(ChartAxisNotes notes)
Parameters:notesChartAxisNotes

The notes.

Properties

Gets or sets the axis.

C#
public ChartAxisNotes Notes { get; }
Property Value:

The axis.

Methods

Defines the items of the notes.

C#
public ChartAxisNotesBuilder Data(Action<ChartAxisNotesFactory> configurator)
Parameters:configuratorAction<ChartAxisNotesFactory>

The action that configures the items.

Returns:

ChartAxisNotesBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(a =&gt; a.Numeric()
.Note(notes =&gt; notes
.Data(data =&gt; {
data.Add().Value(1);
data.Add().Value(2);
})
)
)
)

Sets the icon configuration of the note.

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

The action that configures the icon settings.

Returns:

ChartAxisNotesBuilder

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

Sets the label configuration of the note.

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

The action that configures the label options.

Returns:

ChartAxisNotesBuilder

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

Sets the line configuration of the note.

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

The action that configures the line options.

Returns:

ChartAxisNotesBuilder

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

Sets the position of the axis note.

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

The value that configures the position.

Returns:

ChartAxisNotesBuilder

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