ChartTitleSettingsBuilder

Methods

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.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Example

Razor
 
            @(Html.Kendo().Chart()
                 .Name("chart")
                 .Title(title => title.Text("2018 Sales").Margin(10, 20, 10, 10))
            )
             

Margin(System.Int32)

Sets the title margin

Parameters

margin - System.Int32

The title margin.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Example

Razor
 
            @(Html.Kendo().Chart()
                 .Name("chart")
                 .Title(title => title.Text("2018 Sales").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.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Example

Razor
 
            @(Html.Kendo().Chart()
                 .Name("chart")
                 .Title(title => title.Text("2018 Sales").Padding(10, 20, 10, 10))
            )
             

Padding(System.Int32)

Sets the title padding

Parameters

padding - System.Int32

The title padding.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Example

Razor
 
            @(Html.Kendo().Chart()
                 .Name("chart")
                 .Title(title => title.Text("2018 Sales").Padding(10))
            )
             

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.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Example

Razor
 
            @(Html.Kendo().Chart()
                 .Name("chart")
                 .Title(title => title.Text("2018 Sales").Border(1, "#f00", ChartDashType.Dot))
            )
             

Background(System.String)

The background color of the title. Accepts a valid CSS color string, including hex and rgb.

Parameters

value - System.String

The value for Background

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Border(System.Action)

The border of the title.

Parameters

configurator - System.Action<ChartTitleBorderSettingsBuilder>

The configurator for the border setting.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Color(System.String)

The text color of the title. Accepts a valid CSS color string, including hex and rgb.

Parameters

value - System.String

The value for Color

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

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

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Font(System.String)

The font of the title.

Parameters

value - System.String

The value for Font

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Margin(System.Action)

The margin of the title. A numeric value will set all margins.

Parameters

configurator - System.Action<ChartTitleMarginSettingsBuilder>

The configurator for the margin setting.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Padding(System.Action)

The padding of the title. A numeric value will set all margins.

Parameters

configurator - System.Action<ChartTitlePaddingSettingsBuilder>

The configurator for the padding setting.

RETURNS

Returns the current instance of ChartTitleSettingsBuilder .

Text(System.String)

The text of the chart title. You can also set the text directly for a title with default options.

Parameters

value - System.String

The value for Text

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Visible(System.Boolean)

If set to true the chart will display the title. By default the title will be displayed.

Parameters

value - System.Boolean

The value for Visible

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Align(Kendo.Mvc.UI.ChartTextAlignment)

Specifies the text alignment.

Parameters

value - ChartTextAlignment

The value for Align

RETURNS

Returns the current ChartTitleSettingsBuilder instance.

Position(Kendo.Mvc.UI.ChartTitlePosition)

Specifies the title position.

Parameters

value - ChartTitlePosition

The value for Position

RETURNS

Returns the current ChartTitleSettingsBuilder instance.