ChartTooltipBuilder
Defines the fluent interface for configuring the chart data points tooltip.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ChartTooltipBuilder
Inheritance: objectChartTooltipBuilder
Inherited Members
Constructors
Initializes a new instance of the ChartTooltipBuilder class.
public ChartTooltipBuilder(ChartTooltip chartTooltip)
The data point tooltip configuration.
Methods
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.
public ChartTooltipBuilder AutoHide(bool value)
The value for AutoHide
Returns:Sets the tooltip background color
public ChartTooltipBuilder Background(string background)
The tooltip background color. The default is determined from the series color.
Returns:Configures the tooltip border
public ChartTooltipBuilder Border(Action<ChartBorderBuilder> configurator)
The border configuration action
Returns:Sets the tooltip text color
public ChartTooltipBuilder Color(string color)
The tooltip text color. The default is the same as the series labels color.
Returns:Sets the tooltip font
public ChartTooltipBuilder Font(string font)
The tooltip font (CSS format).
Returns:Sets the tooltip format
public ChartTooltipBuilder Format(string format)
The tooltip format.
Returns:The format string is ignored if a template is set.
Sets the tooltip opacity.
public ChartTooltipBuilder Opacity(double opacity)
The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.
Returns:Sets the tooltip padding
public ChartTooltipBuilder Padding(int padding)
The tooltip padding.
Returns:Sets the tooltip shared
Sets the tooltip shared template
public ChartTooltipBuilder SharedTemplate(string sharedTemplate)
The tooltip shared template.
Returns:A client-side shared template for the tooltip.
- points - the category points
- category - the category name
Sets the tooltip template
public ChartTooltipBuilder Template(string template)
The tooltip template.
Returns:A client-side template for the tooltip.
- value - the point value
- category - the category name
- series - the data series configuration object
- dataItem - the original data item (client-side binding only)
The format string is ignored if a template is set.
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public ChartTooltipBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the ariatemplate.
Returns:The function that returns the content for the tooltip
public ChartTooltipBuilder TemplateHandler(string templateHandler)
The handler that returs the template
Returns:The Id of the Kendo template that sets the tooltip template
public ChartTooltipBuilder TemplateId(string templateId)
The ID of the template element for the template
Returns:Sets the tooltip template
public ChartTooltipBuilder TemplateView(MvcHtmlString templateView)
The view that contains the template
Returns:Sets the tooltip visibility
public ChartTooltipBuilder Visible(bool visible)
The tooltip visibility. The tooltip is not visible by default.
Returns: