Defines the fluent API for configuring ChartTooltipSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartTooltipSettingsBuilder<T> where T : class
Inheritance: objectChartTooltipSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartTooltipSettingsBuilder<T> class.
public ChartTooltipSettingsBuilder(ChartTooltipSettings<T> container)
The ChartTooltipSettings<T> container
Properties
Gets the ChartTooltipSettings<T> container.
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.
public ChartTooltipSettingsBuilder<T> AutoHide(bool value)
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.
public ChartTooltipSettingsBuilder<T> Background(string value)
The value for Background
Returns:ChartTooltipSettingsBuilder<T>
Returns the current ChartTooltipSettingsBuilder<T> instance.
The border configuration options.
public ChartTooltipSettingsBuilder<T> Border(Action<ChartTooltipBorderSettingsBuilder<T>> configurator)
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.
public ChartTooltipSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartTooltipSettingsBuilder<T>
Returns the current ChartTooltipSettingsBuilder<T> instance.
The tooltip font.
public ChartTooltipSettingsBuilder<T> Font(string value)
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.
public ChartTooltipSettingsBuilder<T> Format(string value)
The value for Format
Returns:ChartTooltipSettingsBuilder<T>
Returns the current ChartTooltipSettingsBuilder<T> instance.
The opacity of the tooltip.
public ChartTooltipSettingsBuilder<T> Opacity(double value)
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.
public ChartTooltipSettingsBuilder<T> Padding(Action<ChartTooltipPaddingSettingsBuilder<T>> configurator)
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.
public ChartTooltipSettingsBuilder<T> Shared()
ChartTooltipSettingsBuilder<T>
Returns the current ChartTooltipSettingsBuilder<T> instance.
If set to true the chart will display a single tooltip for every category.
public ChartTooltipSettingsBuilder<T> Shared(bool value)
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.
public ChartTooltipSettingsBuilder<T> SharedTemplate(string value)
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.
public ChartTooltipSettingsBuilder<T> SharedTemplate<TModel>(TemplateBuilder<TModel> template)
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.
public ChartTooltipSettingsBuilder<T> SharedTemplateHandler(string templateHandler)
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.
public ChartTooltipSettingsBuilder<T> SharedTemplateId(string templateId)
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.
public ChartTooltipSettingsBuilder<T> SharedTemplateView(IHtmlContent templateView)
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..
public ChartTooltipSettingsBuilder<T> Template(string value)
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..
public ChartTooltipSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
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..
public ChartTooltipSettingsBuilder<T> TemplateHandler(string templateHandler)
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..
public ChartTooltipSettingsBuilder<T> TemplateId(string templateId)
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..
public ChartTooltipSettingsBuilder<T> TemplateView(IHtmlContent templateView)
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.
public ChartTooltipSettingsBuilder<T> Visible()
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.
public ChartTooltipSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartTooltipSettingsBuilder<T>
Returns the current ChartTooltipSettingsBuilder<T> instance.