New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring ChartTooltipSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartTooltipSettingsBuilder<T> where T : class

Inheritance: objectChartTooltipSettingsBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartTooltipSettingsBuilder<T> class.

C#
public ChartTooltipSettingsBuilder(ChartTooltipSettings<T> container)
Parameters:containerChartTooltipSettings<T>

The ChartTooltipSettings<T> container

Properties

Gets the ChartTooltipSettings<T> container.

C#
protected ChartTooltipSettings<T> Container { get; }

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.

C#
public ChartTooltipSettingsBuilder<T> AutoHide(bool value)
Parameters:valuebool

The value for AutoHide

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The background color of the tooltip. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartTooltipSettingsBuilder<T> Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The border configuration options.

C#
public ChartTooltipSettingsBuilder<T> Border(Action<ChartTooltipBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartTooltipBorderSettingsBuilder<T>>

The ChartTooltipBorderSettingsBuilder<T> for the border setting.

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current instance of ChartTooltipSettingsBuilder<T> .

The text color of the tooltip. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartTooltipSettingsBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The tooltip font.

C#
public ChartTooltipSettingsBuilder<T> Font(string value)
Parameters:valuestring

The value for Font

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The format of the labels. Uses kendo.format.Format placeholders: Area, bar, column, funnel, pyramid, line and pie; {0} - value; Bubble; {0} - x value; {1} - y value; {2} - size value; {3} - category name; Bullet; {0} - value; {1} - target value; Scatter and scatterLine; {0} - x value; {1} - y value; Candlestick and OHLC; {0} - open value; {1} - high value; {2} - low value; {3} - close value; {4} - category name; RangeArea, rangeBar, rangeColumn; {0} - from value or {1} - to value.

C#
public ChartTooltipSettingsBuilder<T> Format(string value)
Parameters:valuestring

The value for Format

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The opacity of the tooltip.

C#
public ChartTooltipSettingsBuilder<T> Opacity(double value)
Parameters:valuedouble

The value for Opacity

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The padding of the tooltip. A numeric value will set all paddings.

C#
public ChartTooltipSettingsBuilder<T> Padding(Action<ChartTooltipPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartTooltipPaddingSettingsBuilder<T>>

The ChartTooltipPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current instance of ChartTooltipSettingsBuilder<T> .

If set to true the chart will display a single tooltip for every category.

C#
public ChartTooltipSettingsBuilder<T> Shared()
Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

If set to true the chart will display a single tooltip for every category.

C#
public ChartTooltipSettingsBuilder<T> Shared(bool value)
Parameters:valuebool

The value for Shared

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the shared tooltip.The fields which can be used in the template are: points - the category points or category - the category name.

C#
public ChartTooltipSettingsBuilder<T> SharedTemplate(string value)
Parameters:valuestring

The value for SharedTemplate

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the shared tooltip.The fields which can be used in the template are: points - the category points or category - the category name.

C#
public ChartTooltipSettingsBuilder<T> SharedTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the sharedtemplate.

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the shared tooltip.The fields which can be used in the template are: points - the category points or category - the category name.

C#
public ChartTooltipSettingsBuilder<T> SharedTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for SharedTemplate

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the shared tooltip.The fields which can be used in the template are: points - the category points or category - the category name.

C#
public ChartTooltipSettingsBuilder<T> SharedTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for SharedTemplate

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the shared tooltip.The fields which can be used in the template are: points - the category points or category - the category name.

C#
public ChartTooltipSettingsBuilder<T> SharedTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for SharedTemplate

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the tooltip.The fields which can be used in the template are: category - the category name; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series; value - the point value (either a number or an object); runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series. or total - the sum of all previous series values. Available for waterfall series..

C#
public ChartTooltipSettingsBuilder<T> Template(string value)
Parameters:valuestring

The value for Template

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the tooltip.The fields which can be used in the template are: category - the category name; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series; value - the point value (either a number or an object); runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series. or total - the sum of all previous series values. Available for waterfall series..

C#
public ChartTooltipSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the tooltip.The fields which can be used in the template are: category - the category name; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series; value - the point value (either a number or an object); runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series. or total - the sum of all previous series values. Available for waterfall series..

C#
public ChartTooltipSettingsBuilder<T> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the tooltip.The fields which can be used in the template are: category - the category name; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series; value - the point value (either a number or an object); runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series. or total - the sum of all previous series values. Available for waterfall series..

C#
public ChartTooltipSettingsBuilder<T> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

The template which renders the tooltip.The fields which can be used in the template are: category - the category name; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series; value - the point value (either a number or an object); runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series. or total - the sum of all previous series values. Available for waterfall series..

C#
public ChartTooltipSettingsBuilder<T> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

If set to true the chart will display the series tooltip. By default the series tooltip is not displayed.

C#
public ChartTooltipSettingsBuilder<T> Visible()
Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.

If set to true the chart will display the series tooltip. By default the series tooltip is not displayed.

C#
public ChartTooltipSettingsBuilder<T> Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

ChartTooltipSettingsBuilder<T>

Returns the current ChartTooltipSettingsBuilder<T> instance.