Defines the fluent API for configuring ChartSeriesTooltipSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartSeriesTooltipSettingsBuilder<T> where T : class
Inheritance: objectChartSeriesTooltipSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartSeriesTooltipSettingsBuilder<T> class.
public ChartSeriesTooltipSettingsBuilder(ChartSeriesTooltipSettings<T> container)
The ChartSeriesTooltipSettings<T> container
Properties
Gets the ChartSeriesTooltipSettings<T> container.
protected ChartSeriesTooltipSettings<T> Container { get; }
Methods
The background color of the tooltip. Accepts a valid CSS color string, including hex and rgb.
public ChartSeriesTooltipSettingsBuilder<T> Background(string value)
The value for Background
Returns:ChartSeriesTooltipSettingsBuilder<T>
Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.
The border configuration options.
public ChartSeriesTooltipSettingsBuilder<T> Border(Action<ChartSeriesTooltipBorderSettingsBuilder<T>> configurator)
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.
public ChartSeriesTooltipSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartSeriesTooltipSettingsBuilder<T>
Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.
The tooltip font.
public ChartSeriesTooltipSettingsBuilder<T> Font(string value)
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.
public ChartSeriesTooltipSettingsBuilder<T> Format(string value)
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.
public ChartSeriesTooltipSettingsBuilder<T> Padding(Action<ChartSeriesTooltipPaddingSettingsBuilder<T>> configurator)
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..
public ChartSeriesTooltipSettingsBuilder<T> Template(string value)
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..
public ChartSeriesTooltipSettingsBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
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..
public ChartSeriesTooltipSettingsBuilder<T> TemplateHandler(string templateHandler)
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..
public ChartSeriesTooltipSettingsBuilder<T> TemplateId(string templateId)
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..
public ChartSeriesTooltipSettingsBuilder<T> TemplateView(IHtmlContent templateView)
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.
public ChartSeriesTooltipSettingsBuilder<T> Visible()
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.
public ChartSeriesTooltipSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartSeriesTooltipSettingsBuilder<T>
Returns the current ChartSeriesTooltipSettingsBuilder<T> instance.