Kendo.Mvc.UI.Fluent.ChartTitleSettingsBuilder

Defines the fluent API for configuring ChartTitleSettings

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.

Example (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .Title(title => title.Margin(10, 20, 30, 40))
    .Render();
%>

Margin(System.Int32)

Sets the title margin

Parameters

margin System.Int32

The title margin.

Example (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .Title(title => title.Margin(20))
    .Render();
%>

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 (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .Title(title => title.Padding(10, 20, 30, 40))
    .Render();
%>

Padding(System.Int32)

Sets the title padding

Parameters

padding System.Int32

The title padding.

Example (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .Title(title => title.Padding(20))
    .Render();
%>

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 Kendo.Mvc.UI.ChartDashType

The title dash type.

Example (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .Title(title => title.Border(1, "#000", ChartDashType.Dot))
    .Render();
%>

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

Border(System.Action<Kendo.Mvc.UI.Fluent.ChartTitleBorderSettingsBuilder<T>>)

The border of the title.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartTitleBorderSettingsBuilder>

The configurator for the border setting.

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

Font(System.String)

The font of the title.

Parameters

value System.String

The value for Font

Margin(System.Action<Kendo.Mvc.UI.Fluent.ChartTitleMarginSettingsBuilder<T>>)

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

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartTitleMarginSettingsBuilder>

The configurator for the margin setting.

Padding(System.Action<Kendo.Mvc.UI.Fluent.ChartTitlePaddingSettingsBuilder<T>>)

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

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartTitlePaddingSettingsBuilder>

The configurator for the padding setting.

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

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

Align(Kendo.Mvc.UI.ChartTextAlignment)

Specifies the text alignment.

Parameters

value Kendo.Mvc.UI.ChartTextAlignment

The value for Align

Position(Kendo.Mvc.UI.ChartTitlePosition)

Specifies the title position.

Parameters

value Kendo.Mvc.UI.ChartTitlePosition

The value for Position

In this article
Not finding the help you need?