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

Kendo UI errorBars TagHelper ChartSeriesErrorBarsSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("error-bars", ParentTag = "series-item", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("error-bars", ParentTag = "series-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("line", new string[] { })]
[SuppressTagRendering]
public class ChartSeriesErrorBarsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartSeriesErrorBarsSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-chart name="chart">
    <series-defaults>
        <error-bars color="#ff0000"></error-bars>
    </series-defaults>
</kendo-chart>

Child Tagsline

Constructors

Initializes a new instance of the ChartSeriesErrorBarsSettingsTagHelper class.

C#
public ChartSeriesErrorBarsSettingsTagHelper()

Properties

The color of the error bars. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

If set to false, the error bars caps will not be displayed. By default the caps are visible.

C#
public bool? EndCaps { get; set; }

The error bars value.The following value types are supported: "stderr" - the standard error of the series values will be used to calculate the point low and high value; "stddev(n)" - the standard deviation of the series values will be used to calculate the point low and high value. A number can be specified between the parentheses, that will be multiplied by the calculated standard deviation.; "percentage(n)" - a percentage of the point value; A number that will be subtracted/added to the point value; An array that holds the low and high difference from the point value or A function that returns the errorBars point value.

C#
public string Value { get; set; }

The error bars value.The following value types are supported: "stderr" - the standard error of the series values will be used to calculate the point low and high value; "stddev(n)" - the standard deviation of the series values will be used to calculate the point low and high value. A number can be specified between the parentheses, that will be multiplied by the calculated standard deviation.; "percentage(n)" - a percentage of the point value; A number that will be subtracted/added to the point value; An array that holds the low and high difference from the point value or A function that returns the errorBars point value.

C#
public string ValueHandler { get; set; }

A function that can be used to create a custom visual for the error bars. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the error bar options.; createVisual - a function that can be used to get the default visual.; low - the error bar low value.; high - the error bar high value. or sender - the chart instance..

C#
public string Visual { get; set; }

The xAxis error bars value. See the series.errorBars.value option for a list of the supported value types.

C#
public string XValue { get; set; }

The xAxis error bars value. See the series.errorBars.value option for a list of the supported value types.

C#
public string XValueHandler { get; set; }

The yAxis error bars value. See the series.errorBars.value option for a list of the supported value types.

C#
public string YValue { get; set; }

The yAxis error bars value. See the series.errorBars.value option for a list of the supported value types.

C#
public string YValueHandler { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>