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

ChartTitleBuilder

Methods

Text(System.String)

Sets the title text

Parameters

text - System.String

The text title.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Text("Chart"))
            )

Font(System.String)

Sets the title font

Parameters

font - System.String

The title font (CSS format).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Font("16px Arial,Helvetica,sans-serif"))
            )

Color(System.String)

Sets the title color

Parameters

color - System.String

The title color (CSS format).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Color("#ff0000").Text("Title"))
            )

Background(System.String)

Sets the title background color

Parameters

background - System.String

The background color.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Background("red"))
            )

Position(Kendo.Mvc.UI.ChartTitlePosition)

Sets the title position

Parameters

position - ChartTitlePosition

The title position.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Position(ChartTitlePosition.Bottom))
            )

Align(Kendo.Mvc.UI.ChartTextAlignment)

Sets the title alignment

Parameters

align - ChartTextAlignment

The title alignment.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Align(ChartTextAlignment.Left))
            )

Visible(System.Boolean)

Sets the title visibility

Parameters

visible - System.Boolean

The title visibility.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Visible(false))
            )

Margin(System.Int32,System.Int32,System.Int32,System.Int32)

Sets the title margin

Parameters

top - System.Int32

The title top margin.

right - System.Int32

The title right margin.

bottom - System.Int32

The title bottom margin.

left - System.Int32

The title left margin.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Margin(20))
            )

Margin(System.Int32)

Sets the title margin

Parameters

margin - System.Int32

The title margin.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Margin(20))
            )

Padding(System.Int32,System.Int32,System.Int32,System.Int32)

Sets the title padding

Parameters

top - System.Int32

The title top padding.

right - System.Int32

The title right padding.

bottom - System.Int32

The title bottom padding.

left - System.Int32

The title left padding.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Padding(20))
            )

Padding(System.Int32)

Sets the title padding

Parameters

padding - System.Int32

The title padding.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Padding(20))
            )

Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)

Sets the title border

Parameters

width - System.Int32

The title border width.

color - System.String

The title border color.

dashType - ChartDashType

The title dash type.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Border(1, "#000", ChartDashType.Dot))
            )

Border(System.Action)

Configures the plot area border

Parameters

configurator - System.Action<ChartBorderBuilder>

The border configuration action

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Title(title => title.Border(border => border.Width(2).Color("gray")))
            )

Description(System.String)

The accessible description of the Chart. The description is announced by screen readers when the Chart is focused.

Parameters

value - System.String

The value for Description

In this article
Not finding the help you need?