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

Kendo UI seriesDefaults TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("series-defaults", ParentTag = "kendo-chart", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("series-defaults", ParentTag = "kendo-sparkline", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("series-defaults", ParentTag = "kendo-stockchart", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "labels", "overlay", "stack", "tooltip", "notes", "error-bars", "legend-item", "focus-highlight" })]
[SuppressTagRendering]
public class ChartSeriesDefaultsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseChartSeriesDefaultsSettingsTagHelper

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()...

Constructors

Initializes a new instance of the ChartSeriesDefaultsSettingsTagHelper class.

C#
public ChartSeriesDefaultsSettingsTagHelper()

Properties

When set to false all segments become with the same height, otherwise the height of each segment is based on its value.

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

When set to true the ratio of the bases of each segment is calculated based on the ratio of currentDataItem.value/nextDataItem.value The last element is always created like a rectangle since there is no following element.

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

The distance between category clusters.

C#
public double? Gap { get; set; }

The space between the chart series as proportion of the series width.

C#
public double? Spacing { get; set; }

The start angle (degrees) of the first donut or pie segment.Angles increase clockwise and zero is to the left. Negative values are acceptable.

C#
public double? StartAngle { get; set; }

The supported values are: "normal" - The values will be connected with straight line.; "step" - The values will be connected with a line with right angle. or "smooth" - The values will be connected with a smooth line..

C#
public string Style { get; set; }

The type of the series.

C#
public ChartSeriesType? Type { get; set; }

A function that can be used to create a custom visual for the points. Applicable for bar and column series. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the point options.; createVisual - a function that can be used to get the default visual.; category - the point category.; dataItem - the point dataItem.; value - the point value.; sender - the chart instance. or series - the point series..

C#
public string Visual { 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>