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.
Example
@(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
@(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
@(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
@(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.
Example
@(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)
The border of the title.
Parameters
configurator - System.Action<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
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
Font(System.String)
The font of the title.
Parameters
value - System.String
The value for Font
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.
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.
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 - ChartTextAlignment
The value for Align
Position(Kendo.Mvc.UI.ChartTitlePosition)
Specifies the title position.
Parameters
value - ChartTitlePosition
The value for Position