Kendo UI ChartValueAxis TagHelper ChartValueAxisTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@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>
Child Tags
Constructors
Initializes a new instance of the ChartValueAxisTagHelper class.
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)
public object[] AxisCrossingValue { get; set; }
The background color of the axis.
public string Background { get; set; }
The color of the value axis. Accepts a valid CSS color string, including hex and rgb.
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.
public double? MajorUnit { 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.
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.
public double? MinorUnit { get; set; }
The unique axis name. Used to associate a series with a value axis using the series.axis option.
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.
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.
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.
public bool? Reverse { get; set; }
The axis type.The supported values are: "numeric" - numeric axis. or "log" - logarithmic axis..
public string Type { get; set; }
If set to true the chart will display the value axis. By default the value axis is visible.
public bool? Visible { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.