Kendo UI axisDefaults TagHelper ChartAxisDefaultsSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("axis-defaults", ParentTag = "kendo-chart", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("axis-defaults", ParentTag = "kendo-sparkline", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("axis-defaults", ParentTag = "kendo-stockchart", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("crosshair", new string[] { "labels", "line", "major-grid-lines", "major-ticks", "minor-grid-lines", "minor-ticks", "plot-bands", "chart-axis-defaults-title" })]
[SuppressTagRendering]
public class ChartAxisDefaultsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseChartAxisDefaultsSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<axis-defaults background="#f0f0f0">
</axis-defaults>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartAxisDefaultsSettingsTagHelper class.
public ChartAxisDefaultsSettingsTagHelper()
Properties
The background color of the axis.
public string Background { get; set; }
The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb.
public string Color { get; set; }
If set to true the chart will prevent the axis range from snapping to 0. Setting it to false will force the axis range to snap to 0.
public bool? NarrowRange { get; set; }
The name of the pane that the 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 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 angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.
public double? StartAngle { 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.