ChartSeriesTagHelper
Kendo UI ChartSeries TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-chart name="chart">
<series>
<series-item name="series1" aggregate="ChartSeriesAggregate.Sum"></series-item>
</series>
</kendo-chart>
Child Tags
Constructors
Initializes a new instance of the ChartSeriesTagHelper class.
public ChartSeriesTagHelper()
Properties
Specifies the preferred series aggregate.
public ChartSeriesAggregate? Aggregate { get; set; }
Specifies the preferred series aggregate.
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.
public bool? AutoFit { get; set; }
The name of the category axis to use for the series.The first axis will be used if no categoryAxis is specified.
public string CategoryAxis { get; set; }
The data item field which contains the category name or date.
public string CategoryField { get; set; }
The data field containing the close value.
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..
public string Color { get; set; }
The data item field which contains the series color.
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..
public string ColorHandler { get; set; }
The data item field containing the current value.
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.
public DashType? DashType { get; set; }
The collection of data items which represent the series data.
public IEnumerable Data { get; set; }
The series color when the open value is greater than the close value.
public string DownColor { get; set; }
The data field containing the color applied when the open value is greater than the close value.
public string DownColorField { get; set; }
The series color when the open value is greater than the close value.
public string DownColorHandler { get; set; }
The data field which contains the value to use to drill down into detailed data for the point.
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.
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.
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.
public bool? DynamicSlope { get; set; }
The data item field which contains the series.errorBars high value.
public string ErrorHighField { get; set; }
The data item field which contains the series.errorBars low value.
public string ErrorLowField { get; set; }
The data item field which contains a boolean value indicating whether the sector is exploded.
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.
public string Field { get; set; }
The data item field which contains the series from value.
public string FromField { get; set; }
The distance between categories expressed as a percentage of the bar width.See the related spacing setting.
public double? Gap { get; set; }
The chart line configuration options.
[HtmlAttributeName("line")]
public string LineValue { get; set; }
The data item field which contains the series lower value.
public string LowerField { get; set; }
The margin around each donut series (ring). A numeric value will set all margins.
public double? Margin { get; set; }
The maximum size of the chart bubble series marker.
public double? MaxSize { get; set; }
The data item field which contains the series mean value.
public string MeanField { get; set; }
The data item field which contains the series median value.
public string MedianField { get; set; }
The minimum size of the chart bubble series marker.
public double? MinSize { get; set; }
Specifies the behavior for handling missing values in the series.
public ChartSeriesMissingValues? MissingValues { get; set; }
The name of the chart series which is visible in the legend.
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.
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.
public string NegativeColor { get; set; }
The data item field which contains the series note text.
public string NoteTextField { get; set; }
The series opacity. By default the series are opaque.
public double? Opacity { get; set; }
The data item field which contains the series outliers value.
public string OutliersField { get; set; }
The padding around the chart (equal on all sides).
public double? Padding { get; set; }
The data item field which contains the series pattern configuration for individual chart segments.
public string PatternField { get; set; }
The data item field which contains the series q1 value. This configuration is available only for box plot charts.
public string Q1Field { get; set; }
The data item field which contains the series q3 value. This configuration is available only for box plot charts.
public string Q3Field { get; set; }
The space in pixels between the different segments of the funnel and pyramid charts.
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.
public double? Size { get; set; }
The data field containing the bubble size value.
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.
public double? Spacing { get; set; }
A boolean value indicating if the series should be stacked. A string value is interpreted as series.stack.group.
[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.
public double? StartAngle { get; set; }
Specifies the preferred rendering style.
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..
public string SummaryField { get; set; }
The data item field containing the target value.
public string TargetField { get; set; }
The data item field which contains the series to value.
public string ToField { get; set; }
The type of the series.
public ChartSeriesType? Type { get; set; }
The data item field which contains the series upper value.
public string UpperField { 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.
public bool? VisibleInLegend { get; set; }
The data item field which indicates whether to show the point category name in the legend.
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..
public string Visual { get; set; }
The name of the X axis to use.For polar series the xAxis range is expressed in degrees.
public string XAxis { get; set; }
The data item field which contains the series.errorBars xAxis high value.
public string XErrorHighField { get; set; }
The data item field which contains the series.errorBars xAxis low value.
public string XErrorLowField { get; set; }
The name of the Y axis to use.Available for bubble, scatter, scatterLine and polar series.
public string YAxis { get; set; }
The data item field which contains the series.errorBars yAxis high value.
public string YErrorHighField { get; set; }
The data item field which contains the series.errorBars yAxis low value.
public string YErrorLowField { 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.
public double? ZIndex { 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.