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

Kendo UI ChartValueAxis TagHelper ChartValueAxisTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("value-axis-item", ParentTag = "value-axis", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("crosshair", new string[] { "labels", "line", "major-grid-lines", "minor-grid-lines", "major-ticks", "minor-ticks", "plot-bands", "chart-value-axis-item-title", "notes" })]
[SuppressTagRendering]
public class ChartValueAxisTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseChartValueAxisTagHelper

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">
    <value-axis>
        <value-axis-item axis-crossing-value="@(new object[] { 0 })">
        </value-axis-item>
    </value-axis>
</kendo-chart>

Constructors

Initializes a new instance of the ChartValueAxisTagHelper class.

C#
public ChartValueAxisTagHelper()

Properties

Value at which the category axis crosses this axis. (Only for object)Value indices at which the category axes cross the value axis. (Only for array)Date at which the category axis crosses this axis. (Only for date)

C#
public object[] AxisCrossingValue { get; set; }

The background color of the axis.

C#
public string Background { get; set; }

The color of the value axis. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The interval between major divisions. If the valueAxis.type is set to "log", the majorUnit value will be used for the base of the logarithm.

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

The maximum value of the axis.

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

The minimum value of the axis. Under certain conditions, the narrowRange setting can overwrite this setting. To give priority to the min setting of your choice, set valueAxis.narrowRange to false.

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

The interval between minor divisions. It defaults to 1/5 of the valueAxis.majorUnit. If the valueAxis.type is set to "log", the minorUnit value represents the number of divisions between two major units and defaults to the major unit minus one.

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

The unique axis name. Used to associate a series with a value axis using the series.axis option.

C#
public string Name { get; set; }

If set to true the Chart will narrow the value axis range in order to display data points in better detail. Setting it to false will force the automatic axis range to start from 0 or the explicitly specified valueAxis.min value.

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

The name of the pane that the value axis should be rendered in. The axis will be rendered in the first (default) pane if not set.

C#
public string Pane { get; set; }

If set to true the value axis direction will be reversed. By default categories are listed from left to right and from bottom to top.

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

The axis type.The supported values are: "numeric" - numeric axis. or "log" - logarithmic axis..

C#
public string Type { get; set; }

If set to true the chart will display the value axis. By default the value axis is visible.

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

An optional Z-index that can be used to change the default stacking position of the valueAxis.

C#
public double? ZIndex { 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>