Kendo.Mvc.UI.Fluent.ChartTooltipBuilder
Defines the fluent interface for configuring the chart data points tooltip.
Methods
Font(System.String)
Sets the tooltip font
Parameters
font System.String
The tooltip font (CSS format).
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Font("14px Arial,Helvetica,sans-serif")
.Visible(true)
)
)
Visible(System.Boolean)
Sets the tooltip visibility
Parameters
visible System.Boolean
The tooltip visibility. The tooltip is not visible by default.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Visible(true)
)
)
Background(System.String)
Sets the tooltip background color
Parameters
background System.String
The tooltip background color. The default is determined from the series color.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Background("Red")
.Visible(true)
)
)
Color(System.String)
Sets the tooltip text color
Parameters
color System.String
The tooltip text color. The default is the same as the series labels color.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Color("Red")
.Visible(true)
)
)
Padding(System.Int32,System.Int32,System.Int32,System.Int32)
Sets the tooltip padding
Parameters
top System.Int32
The tooltip top padding.
right System.Int32
The tooltip right padding.
bottom System.Int32
The tooltip bottom padding.
left System.Int32
The tooltip left padding.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Padding(0, 5, 5, 0)
.Visible(true)
)
)
Padding(System.Int32)
Sets the tooltip padding
Parameters
padding System.Int32
The tooltip padding.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Padding(20)
.Visible(true)
)
)
Border(System.Int32,System.String)
Sets the tooltip border
Parameters
width System.Int32
The tooltip border width.
color System.String
The tooltip border color (CSS syntax).
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Border(1, "Red")
.Visible(true)
)
)
Border(System.Action<Kendo.Mvc.UI.Fluent.ChartBorderBuilder>)
Configures the tooltip border
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartBorderBuilder>
The border configuration action
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Border(border => border.Width(1).Color("red"))
.Visible(true)
)
)
Format(System.String)
Sets the tooltip format
Parameters
format System.String
The tooltip format.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Format("{0:C}")
.Visible(true)
)
)
Template(System.String)
Sets the tooltip template
Parameters
template System.String
The tooltip template.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Template("#= category # -#= value #")
.Visible(true)
)
)
Opacity(System.Double)
Sets the tooltip opacity.
Parameters
opacity System.Double
The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Opacity(0.5)
.Visible(true)
)
)
Shared(System.Boolean)
Sets the tooltip shared
Parameters
shared System.Boolean
The tooltip shared.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Visible(true)
.Shared(true)
)
)
SharedTemplate(System.String)
Sets the tooltip shared template
Parameters
sharedTemplate System.String
The tooltip shared template.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Tooltip(tooltip => tooltip
.Template("#= category #")
.Visible(true)
)
)
AutoHide(System.Boolean)
Specifies if the tooltip will be hidden when the mouse leaves the target element. If set to false, a Close button will be shown within tooltip.
Parameters
value System.Boolean
The value for AutoHide