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

Defines the fluent API for configuring ChartSeriesHighlightSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartSeriesHighlightSettingsBuilder<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 ChartSeriesHighlightSettingsBuilder<T> class.

C#
public ChartSeriesHighlightSettingsBuilder(ChartSeriesHighlightSettings<T> container)
Parameters:containerChartSeriesHighlightSettings<T>

The ChartSeriesHighlightSettings<T> container

Properties

Gets the ChartSeriesHighlightSettings<T> container.

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

Methods

The border of the highlighted chart series. The color is computed automatically from the base point color.

C#
public ChartSeriesHighlightSettingsBuilder<T> Border(Action<ChartSeriesHighlightBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesHighlightBorderSettingsBuilder<T>>

The ChartSeriesHighlightBorderSettingsBuilder<T> for the border setting.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current instance of ChartSeriesHighlightSettingsBuilder<T> .

The highlight color. Accepts a valid CSS color string, including hex and rgb.

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

The value for Color

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

The opacity of the series when another series is highlighted.

C#
public ChartSeriesHighlightSettingsBuilder<T> InactiveOpacity(double value)
Parameters:valuedouble

The value for InactiveOpacity

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

The line of the highlighted chart series. The color is computed automatically from the base point color.

C#
public ChartSeriesHighlightSettingsBuilder<T> Line(Action<ChartSeriesHighlightLineSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesHighlightLineSettingsBuilder<T>>

The ChartSeriesHighlightLineSettingsBuilder<T> for the line setting.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current instance of ChartSeriesHighlightSettingsBuilder<T> .

The opacity of the highlighted points.

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

The value for Opacity

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

A function that can be used to handle toggling the points highlight. The available argument fields are: preventDefault - a function that can be used to prevent showing the default highlight overlay.; show - a boolean value indicating whether the highlight should be shown.; visual - the visual element that should be highlighted.; category - the point category.; dataItem - the point dataItem.; value - the point value. or series - the point series..

C#
public ChartSeriesHighlightSettingsBuilder<T> Toggle(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

A function that can be used to handle toggling the points highlight. The available argument fields are: preventDefault - a function that can be used to prevent showing the default highlight overlay.; show - a boolean value indicating whether the highlight should be shown.; visual - the visual element that should be highlighted.; category - the point category.; dataItem - the point dataItem.; value - the point value. or series - the point series..

C#
public ChartSeriesHighlightSettingsBuilder<T> Toggle(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

If set to true the chart will highlight the series when the user hovers it with the mouse. By default chart series highlighting is enabled.

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

The value for Visible

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

A function that can be used to set custom visual for the point highlight.The available argument fields are: createVisual - a function that can be used to get the default highlight visual.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; visual - the visual element that should be highlighted.; options - the point options.; category - the point category.; dataItem - the point dataItem.; value - the point value.; sender - the chart instance.; series - the point series.; stackValue - the cumulative point value on the stack. Available only for stackable series.; percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.; runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series.; total - the sum of all previous series values. Available for waterfall series.; from - the "from" point highlight visual options. Available for "rangeArea" and "verticalRangeArea" series. or to - the "to" point highlight visual options. Available for "rangeArea" and "verticalRangeArea" series..

C#
public ChartSeriesHighlightSettingsBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.

A function that can be used to set custom visual for the point highlight.The available argument fields are: createVisual - a function that can be used to get the default highlight visual.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; visual - the visual element that should be highlighted.; options - the point options.; category - the point category.; dataItem - the point dataItem.; value - the point value.; sender - the chart instance.; series - the point series.; stackValue - the cumulative point value on the stack. Available only for stackable series.; percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.; runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series.; total - the sum of all previous series values. Available for waterfall series.; from - the "from" point highlight visual options. Available for "rangeArea" and "verticalRangeArea" series. or to - the "to" point highlight visual options. Available for "rangeArea" and "verticalRangeArea" series..

C#
public ChartSeriesHighlightSettingsBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesHighlightSettingsBuilder<T>

Returns the current ChartSeriesHighlightSettingsBuilder<T> instance.