New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChartAxisNoteItemBuilder

Methods

Value(System.Object)

Sets the note value.

Parameters

value - System.Object

The value of the note.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note
                               .Data(items =>
                               {
                                   data.Add().Value(1);
                                   data.Add().Value(2);
                               })
                          )
                       )
            )

Line(System.Action)

Sets the line configuration of the note

Parameters

configurator - System.Action<ChartNoteLineBuilder>

The line configuration.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note
                                .Line(line => line.Width(2))
                          )
                      )
            )

Label(System.Action)

Sets the label configuration of the note

Parameters

configurator - System.Action<ChartNoteLabelBuilder>

The label configurator.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note
                               .Label(label => label.Position(ChartNoteLabelPosition.Inside))
                          )
                       )
            )

Icon(System.Action)

Sets the icon configuration of the note

Parameters

configurator - System.Action<ChartMarkersBuilder>

The icon configuration.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note.Icon(icon => icon.Size(10)))
                       )
            )

Position(System.Nullable)

Sets the note position.

Parameters

position - System.Nullable<ChartNotePosition>

The note position.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note.Position(ChartNotePosition.Left))
                      )
            )

Visual(System.String)

Sets the note visual handler

Parameters

handler - System.String

The JavaScript handler function name.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note.Visual("noteHandler"))
                      )
            )

Visual(System.Func)

Sets the note visual handler

Parameters

handler - System.Func<Object,Object>

The handler

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .ValueAxis(a => a.Numeric()
                          .Note(note => note.Visual(
                                @<text>
                                    function(e) {
                                        return e.createVisual(); // returns the default visual
                                    }
                                </text>
                                )
                          )
                      )
            )

In this article
Not finding the help you need?