Kendo.Mvc.UI.Fluent.ChartTitleSettingsBuilder
Defines the fluent API for configuring ChartTitleSettings
Properties
Container
Gets the 1 container.
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.Text("2018 Sales").Margin(10, 20, 10, 10))
)
Margin(System.Int32)
Sets the title margin
Parameters
margin System.Int32
The title margin.
Example (ASPX)
@(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.
Example (ASPX)
@(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.
Example (ASPX)
@(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 Kendo.Mvc.UI.ChartDashType
The title dash type.
Example (ASPX)
@(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
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