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

Defines the fluent API for configuring ChartSeriesTooltipSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartSeriesTooltipSettingsBuilder<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 ChartSeriesTooltipSettingsBuilder<T> class.

C#
public ChartSeriesTooltipSettingsBuilder(ChartSeriesTooltipSettings<T> container)
Parameters:containerChartSeriesTooltipSettings<T>

The ChartSeriesTooltipSettings<T> container

Properties

Gets the ChartSeriesTooltipSettings<T> container.

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

Methods

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

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

The value for Background

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

The border configuration options.

C#
public ChartSeriesTooltipSettingsBuilder<T> Border(Action<ChartSeriesTooltipBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesTooltipBorderSettingsBuilder<T>>

The ChartSeriesTooltipBorderSettingsBuilder<T> for the border setting.

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current instance of ChartSeriesTooltipSettingsBuilder<T> .

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

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

The value for Color

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

The tooltip font.

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

The value for Font

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

The format of the labels. Uses kendo.format.Format placeholders: Area, bar, column, line, pie, radarArea, radarColumn and radarLine; {0} - value; Bubble; {0} - x value; {1} - y value; {2} - size value; {3} - category name; Bullet; {0} - value; {1} - target value; Scatter, scatterLine; {0} - x value; {1} - y value; PolarArea, polarLine and polarScatter; {0} - x value (degrees); {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 ChartSeriesTooltipSettingsBuilder<T> Format(string value)
Parameters:valuestring

The value for Format

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

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

C#
public ChartSeriesTooltipSettingsBuilder<T> Padding(Action<ChartSeriesTooltipPaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesTooltipPaddingSettingsBuilder<T>>

The ChartSeriesTooltipPaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current instance of ChartSeriesTooltipSettingsBuilder<T> .

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 ChartSeriesTooltipSettingsBuilder<T> Template(string value)
Parameters:valuestring

The value for Template

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<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 ChartSeriesTooltipSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<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 ChartSeriesTooltipSettingsBuilder<T> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<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 ChartSeriesTooltipSettingsBuilder<T> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<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 ChartSeriesTooltipSettingsBuilder<T> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

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

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

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.

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

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

The value for Visible

Returns:

ChartSeriesTooltipSettingsBuilder<T>

Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.