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

Kendo UI ChartSeries TagHelper

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("series-item", ParentTag = "series", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("series-item", ParentTag = "navigator-series", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("border", new string[] { "connectors", "error-bars", "highlight", "labels", "line", "markers", "outliers", "extremes", "negative-values", "overlay", "stack", "target", "tooltip", "notes", "aggregate", "trendline", "legend-item", "median", "mean", "whiskers", "pattern", "focus-highlight" })]
[SuppressTagRendering]
public class ChartSeriesTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseChartSeriesTagHelper

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>
        <series-item name="series1" aggregate="ChartSeriesAggregate.Sum"></series-item>
    </series>
</kendo-chart>

Constructors

Initializes a new instance of the ChartSeriesTagHelper class.

C#
public ChartSeriesTagHelper()

Properties

Specifies the preferred series aggregate.

C#
public ChartSeriesAggregate? Aggregate { get; set; }

Specifies the preferred series aggregate.

C#
public string AggregateHandler { get; set; }

If set to true, the Chart automatically scales down to fit the content area. Applicable for the Pie and Donut series.

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

The name of the value axis to use.

C#
public string Axis { get; set; }

The name of the category axis to use for the series.The first axis will be used if no categoryAxis is specified.

C#
public string CategoryAxis { get; set; }

The data item field which contains the category name or date.

C#
public string CategoryField { get; set; }

The data field containing the close value.

C#
public string CloseField { get; set; }

The series base color. The supported values are: CSS color string, including hex and rgb or function(point) - user-defined function that will be evaluated for each point. Returning undefined will assume the default series color..

C#
public string Color { get; set; }

The data item field which contains the series color.

C#
public string ColorField { get; set; }

The series base color. The supported values are: CSS color string, including hex and rgb or function(point) - user-defined function that will be evaluated for each point. Returning undefined will assume the default series color..

C#
public string ColorHandler { get; set; }

The data item field containing the current value.

C#
public string CurrentField { get; set; }

The dash type of line chart.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

C#
public DashType? DashType { get; set; }

The collection of data items which represent the series data.

C#
public IEnumerable Data { get; set; }

The series color when the open value is greater than the close value.

C#
public string DownColor { get; set; }

The data field containing the color applied when the open value is greater than the close value.

C#
public string DownColorField { get; set; }

The series color when the open value is greater than the close value.

C#
public string DownColorHandler { get; set; }

The data field which contains the value to use to drill down into detailed data for the point.

C#
public string DrilldownField { get; set; }

A function that creates the drilldown series for a given point.The function should accept a single parameter, the point drilldownField value. The function should return a series configuration object or a Promise that resolves to one.Important - The function must return exactly one series object. Returning an array of series is not supported.

C#
public string DrilldownSeriesFactory { get; set; }

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 data item field which contains the series.errorBars high value.

C#
public string ErrorHighField { get; set; }

The data item field which contains the series.errorBars low value.

C#
public string ErrorLowField { get; set; }

The data item field which contains a boolean value indicating whether the sector is exploded.

C#
public string ExplodeField { get; set; }

The data item field which contains the series value. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.

C#
public string Field { get; set; }

The name of the parent series of the trendline.

C#
public string For { get; set; }

The data item field which contains the series from value.

C#
public string FromField { get; set; }

The distance between categories expressed as a percentage of the bar width.See the related spacing setting.

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

The data field containing the high value.

C#
public string HighField { get; set; }

The radius of the donut hole in pixels.

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

The chart line configuration options.

C#
[HtmlAttributeName("line")]
public string LineValue { get; set; }

The data item field which contains the series lower value.

C#
public string LowerField { get; set; }

The data field containing the low value.

C#
public string LowField { get; set; }

The margin around each donut series (ring). A numeric value will set all margins.

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

The maximum size of the chart bubble series marker.

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

The data item field which contains the series mean value.

C#
public string MeanField { get; set; }

The data item field which contains the series median value.

C#
public string MedianField { get; set; }

The minimum size of the chart bubble series marker.

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

Specifies the behavior for handling missing values in the series.

C#
public ChartSeriesMissingValues? MissingValues { get; set; }

The name of the chart series which is visible in the legend.

C#
public string Name { get; set; }

specifies the ratio top-base/bottom-base of the whole chart. neckRatio set to three means the top base is three times smaller than the bottom base.

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

The color to use for bar, column or waterfall series with negative values. Accepts a valid CSS color string, including hex and rgb.

C#
public string NegativeColor { get; set; }

The data item field which contains the series note text.

C#
public string NoteTextField { get; set; }

The series opacity. By default the series are opaque.

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

The data field containing the open value.

C#
public string OpenField { get; set; }

The data item field which contains the series outliers value.

C#
public string OutliersField { get; set; }

The padding around the chart (equal on all sides).

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

The data item field which contains the series pattern configuration for individual chart segments.

C#
public string PatternField { get; set; }

The data item field which contains the series q1 value. This configuration is available only for box plot charts.

C#
public string Q1Field { get; set; }

The data item field which contains the series q3 value. This configuration is available only for box plot charts.

C#
public string Q3Field { get; set; }

The space in pixels between the different segments of the funnel and pyramid charts.

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

The or radius of the chart donut series in pixels. If not set, the available space is split evenly between the series.

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

The data field containing the bubble size value.

C#
public string SizeField { get; set; }

The distance between series points within a category. Expressed as a percentage of the bar width.See the related gap setting.

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

A boolean value indicating if the series should be stacked. A string value is interpreted as series.stack.group.

C#
[HtmlAttributeName("stack")]
public string StackValue { 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; }

Specifies the preferred rendering style.

C#
public ChartSeriesStyle? Style { get; set; }

The data item field which contains the summary type for waterfall series. Summary columns are optional and can be one of two types: "runningTotal" - Displays the sum of all items since the last "runningTotal" point. or "total" - Displays the sum of all previous items..

C#
public string SummaryField { get; set; }

The data item field containing the target value.

C#
public string TargetField { get; set; }

The data item field which contains the series to value.

C#
public string ToField { get; set; }

The type of the series.

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

The data item field which contains the series upper value.

C#
public string UpperField { get; set; }

Sets the visible property of a chart series

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

A value indicating whether to show the point category name (for funnel, pyramid, donut and pie series) or series name (for other available series types) in the legend.

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

The data item field which indicates whether to show the point category name in the legend.

C#
public string VisibleInLegendField { get; set; }

A function that can be used to create a custom visual for the points. Applicable for bar, column, pie, donut, funnel, rangeBar, rangeColumn and waterfall 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.; stackValue - the cumulative point value on the stack. Available only for stackable series.; sender - the chart instance.; series - the point series.; percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.; runningTotal - the sum of point values since the last "runningTotal" summary point. Available for waterfall series.; total - the sum of all previous series values. Available for waterfall series.; radius - the segment radius. Available for donut and pie series.; innerRadius - the segment inner radius. Available for donut series.; startAngle - the segment start angle. Available for donut and pie series.; endAngle - the segment end angle. Available for donut and pie series.; center - the segment center point. Available for donut and pie series. or points - the segment points. Available for funnel series..

C#
public string Visual { get; set; }

The line width.

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

The name of the X axis to use.For polar series the xAxis range is expressed in degrees.

C#
public string XAxis { get; set; }

The data item field which contains the series.errorBars xAxis high value.

C#
public string XErrorHighField { get; set; }

The data item field which contains the series.errorBars xAxis low value.

C#
public string XErrorLowField { get; set; }

The data item field containing the X value.

C#
public string XField { get; set; }

The name of the Y axis to use.Available for bubble, scatter, scatterLine and polar series.

C#
public string YAxis { get; set; }

The data item field which contains the series.errorBars yAxis high value.

C#
public string YErrorHighField { get; set; }

The data item field which contains the series.errorBars yAxis low value.

C#
public string YErrorLowField { get; set; }

The data item field containing the Y value.

C#
public string YField { get; set; }

An optional Z-index that can be used to change the default stacking order of series.The series with the highest Z-index will be placed on top.Series with no Z-index will use the default stacking order based on series type. For example line series will be on top with bar and area following below.

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>