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

Defines the fluent API for configuring ChartSeries

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartSeriesBuilder<T> where T : class

Inheritance: objectChartSeriesBuilder<T>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartSeriesBuilder<T> class.

C#
public ChartSeriesBuilder(ChartSeries<T> container)
Parameters:containerChartSeries<T>

The ChartSeries<T> container

Properties

Gets the ChartSeries<T> container.

C#
protected ChartSeries<T> Container { get; }

Methods

The aggregate function to apply for date series.This function is used when a category (an year, month, etc.) contains two or more points. The function return value is displayed instead of the individual points.The supported values are:

C#
public ChartSeriesBuilder<T> Aggregate(Action<ChartSeriesAggregateSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesAggregateSettingsBuilder<T>>

The configurator for the aggregates setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

Example:
C#
@(Html.Kendo().Chart&lt;ChartViewModel&gt;()
.Name("chart")
.Series(s =&gt; s
.Bar(g =&gt; g.Sales)
.Aggregate(a =&gt; a
.Close(ChartSeriesAggregate.Max)
)
)
)

Specifies the preferred series aggregate.

C#
public ChartSeriesBuilder<T> Aggregate(ChartSeriesAggregate value)
Parameters:valueChartSeriesAggregate

The value for Aggregate

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

Specifies the preferred series aggregate.

C#
public ChartSeriesBuilder<T> AggregateHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

Specifies the preferred series aggregate.

C#
public ChartSeriesBuilder<T> AggregateHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> AutoFit()
Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> AutoFit(bool value)
Parameters:valuebool

The value for AutoFit

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The name of the value axis to use.

C#
public ChartSeriesBuilder<T> Axis(string value)
Parameters:valuestring

The value for Axis

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The border of the chart series.

C#
public ChartSeriesBuilder<T> Border(Action<ChartSeriesBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesBorderSettingsBuilder<T>>

The ChartSeriesBorderSettingsBuilder<T> for the border setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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

C#
public ChartSeriesBuilder<T> CategoryAxis(string value)
Parameters:valuestring

The value for CategoryAxis

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> CategoryField(string value)
Parameters:valuestring

The value for CategoryField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data field containing the close value.

C#
public ChartSeriesBuilder<T> CloseField(string value)
Parameters:valuestring

The value for CloseField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data item field which contains the series color.

C#
public ChartSeriesBuilder<T> ColorField(string value)
Parameters:valuestring

The value for ColorField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> ColorHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> ColorHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The label connectors options.

C#
public ChartSeriesBuilder<T> Connectors(Action<ChartSeriesConnectorsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesConnectorsSettingsBuilder<T>>

The ChartSeriesConnectorsSettingsBuilder<T> for the connectors setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field containing the current value.

C#
public ChartSeriesBuilder<T> CurrentField(string value)
Parameters:valuestring

The value for CurrentField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> DashType(ChartDashType value)
Parameters:valueChartDashType

The value for DashType

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> DownColor(string value)
Parameters:valuestring

The value for DownColor

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> DownColorField(string value)
Parameters:valuestring

The value for DownColorField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> DownColorHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> DownColorHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> DrilldownField(string value)
Parameters:valuestring

The value for DrilldownField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> DrilldownSeriesFactory(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> DrilldownSeriesFactory(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

When set to false all segments become with the same height, otherwise the height of each segment is based on its value.

C#
public ChartSeriesBuilder<T> DynamicHeight(bool value)
Parameters:valuebool

The value for DynamicHeight

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> DynamicSlope()
Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> DynamicSlope(bool value)
Parameters:valuebool

The value for DynamicSlope

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The error bars of the chart series.

C#
public ChartSeriesBuilder<T> ErrorBars(Action<ChartSeriesErrorBarsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesErrorBarsSettingsBuilder<T>>

The ChartSeriesErrorBarsSettingsBuilder<T> for the errorbars setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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

C#
public ChartSeriesBuilder<T> ErrorHighField(string value)
Parameters:valuestring

The value for ErrorHighField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> ErrorLowField(string value)
Parameters:valuestring

The value for ErrorLowField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> ExplodeField(string value)
Parameters:valuestring

The value for ExplodeField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series extremes configuration. Applies to extreme outliers. Also check series.outliers.

C#
public ChartSeriesBuilder<T> Extremes(Action<ChartSeriesExtremesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesExtremesSettingsBuilder<T>>

The ChartSeriesExtremesSettingsBuilder<T> for the extremes setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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 ChartSeriesBuilder<T> Field(string value)
Parameters:valuestring

The value for Field

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The focus highlight configuration options.

C#
public ChartSeriesBuilder<T> FocusHighlight(Action<ChartSeriesFocusHighlightSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesFocusHighlightSettingsBuilder<T>>

The ChartSeriesFocusHighlightSettingsBuilder<T> for the focushighlight setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The name of the parent series of the trendline.

C#
public ChartSeriesBuilder<T> For(string value)
Parameters:valuestring

The value for For

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data item field which contains the series from value.

C#
public ChartSeriesBuilder<T> FromField(string value)
Parameters:valuestring

The value for FromField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Gap(double value)
Parameters:valuedouble

The value for Gap

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data field containing the high value.

C#
public ChartSeriesBuilder<T> HighField(string value)
Parameters:valuestring

The value for HighField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series highlighting configuration options.

C#
public ChartSeriesBuilder<T> Highlight(Action<ChartSeriesHighlightSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesHighlightSettingsBuilder<T>>

The ChartSeriesHighlightSettingsBuilder<T> for the highlight setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The radius of the donut hole in pixels.

C#
public ChartSeriesBuilder<T> HoleSize(double value)
Parameters:valuedouble

The value for HoleSize

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series label configuration.

C#
public ChartSeriesBuilder<T> Labels(Action<ChartSeriesLabelsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesLabelsSettingsBuilder<T>>

The ChartSeriesLabelsSettingsBuilder<T> for the labels setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The configuration of the Chart legend item for this series.

C#
public ChartSeriesBuilder<T> LegendItem(Action<ChartSeriesLegendItemSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesLegendItemSettingsBuilder<T>>

The ChartSeriesLegendItemSettingsBuilder<T> for the legenditem setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The chart line configuration options.

C#
public ChartSeriesBuilder<T> Line(Action<ChartSeriesLineSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesLineSettingsBuilder<T>>

The ChartSeriesLineSettingsBuilder<T> for the line setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The chart line configuration options.

C#
public ChartSeriesBuilder<T> Line(string line)
Parameters:linestring

The line.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series lower value.

C#
public ChartSeriesBuilder<T> LowerField(string value)
Parameters:valuestring

The value for LowerField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data field containing the low value.

C#
public ChartSeriesBuilder<T> LowField(string value)
Parameters:valuestring

The value for LowField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Margin(double value)
Parameters:valuedouble

The value for Margin

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series marker configuration.

C#
public ChartSeriesBuilder<T> Markers(Action<ChartSeriesMarkersSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesMarkersSettingsBuilder<T>>

The ChartSeriesMarkersSettingsBuilder<T> for the markers setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The maximum size of the chart bubble series marker.

C#
public ChartSeriesBuilder<T> MaxSize(double value)
Parameters:valuedouble

The value for MaxSize

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The configuration of the Box Plot mean value indicator (line).

C#
public ChartSeriesBuilder<T> Mean(Action<ChartSeriesMeanSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesMeanSettingsBuilder<T>>

The ChartSeriesMeanSettingsBuilder<T> for the mean setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series mean value.

C#
public ChartSeriesBuilder<T> MeanField(string value)
Parameters:valuestring

The value for MeanField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The configuration of the Box Plot median value indicator (line).

C#
public ChartSeriesBuilder<T> Median(Action<ChartSeriesMedianSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesMedianSettingsBuilder<T>>

The ChartSeriesMedianSettingsBuilder<T> for the median setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series median value.

C#
public ChartSeriesBuilder<T> MedianField(string value)
Parameters:valuestring

The value for MedianField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The minimum size of the chart bubble series marker.

C#
public ChartSeriesBuilder<T> MinSize(double value)
Parameters:valuedouble

The value for MinSize

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

Specifies the behavior for handling missing values in the series.

C#
public ChartSeriesBuilder<T> MissingValues(ChartSeriesMissingValues value)
Parameters:valueChartSeriesMissingValues

The value for MissingValues

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Name(string value)
Parameters:valuestring

The value for Name

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> NeckRatio(double value)
Parameters:valuedouble

The value for NeckRatio

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> NegativeColor(string value)
Parameters:valuestring

The value for NegativeColor

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The options for displaying the chart negative bubble values.

C#
public ChartSeriesBuilder<T> NegativeValues(Action<ChartSeriesNegativeValuesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesNegativeValuesSettingsBuilder<T>>

The ChartSeriesNegativeValuesSettingsBuilder<T> for the negativevalues setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The series notes configuration.

C#
public ChartSeriesBuilder<T> Notes(Action<ChartSeriesNotesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesNotesSettingsBuilder<T>>

The ChartSeriesNotesSettingsBuilder<T> for the notes setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series note text.

C#
public ChartSeriesBuilder<T> NoteTextField(string value)
Parameters:valuestring

The value for NoteTextField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The series opacity. By default the series are opaque.

C#
public ChartSeriesBuilder<T> Opacity(double value)
Parameters:valuedouble

The value for Opacity

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data field containing the open value.

C#
public ChartSeriesBuilder<T> OpenField(string value)
Parameters:valuestring

The value for OpenField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series outliers configuration. Applies to mild outliers. Also check series.extremes.

C#
public ChartSeriesBuilder<T> Outliers(Action<ChartSeriesOutliersSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesOutliersSettingsBuilder<T>>

The ChartSeriesOutliersSettingsBuilder<T> for the outliers setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series outliers value.

C#
public ChartSeriesBuilder<T> OutliersField(string value)
Parameters:valuestring

The value for OutliersField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series overlay options.

C#
public ChartSeriesBuilder<T> Overlay(Action<ChartSeriesOverlaySettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesOverlaySettingsBuilder<T>>

The ChartSeriesOverlaySettingsBuilder<T> for the overlay setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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

C#
public ChartSeriesBuilder<T> Padding(double value)
Parameters:valuedouble

The value for Padding

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The configuration options of the series pattern.

C#
public ChartSeriesBuilder<T> Pattern(Action<ChartSeriesPatternSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesPatternSettingsBuilder<T>>

The ChartSeriesPatternSettingsBuilder<T> for the pattern setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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

C#
public ChartSeriesBuilder<T> PatternField(string value)
Parameters:valuestring

The value for PatternField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Q1Field(string value)
Parameters:valuestring

The value for Q1Field

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Q3Field(string value)
Parameters:valuestring

The value for Q3Field

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> SegmentSpacing(double value)
Parameters:valuedouble

The value for SegmentSpacing

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Size(double value)
Parameters:valuedouble

The value for Size

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data field containing the bubble size value.

C#
public ChartSeriesBuilder<T> SizeField(string value)
Parameters:valuestring

The value for SizeField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Spacing(double value)
Parameters:valuedouble

The value for Spacing

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> Stack()
Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesStackSettingsBuilder<T> .

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

C#
public ChartSeriesBuilder<T> Stack(Action<ChartSeriesStackSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesStackSettingsBuilder<T>>

The ChartSeriesStackSettingsBuilder<T> for the stack setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

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

C#
public ChartSeriesBuilder<T> Stack(bool enabled)
Parameters:enabledbool

Enables or disables the stack option.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesStackSettingsBuilder<T> .

Sets the name of the stack that this series belongs to. Each unique name creates a new stack.

C#
public virtual ChartSeriesBuilder<T> Stack(ChartStackType stackType, string stackGroup = null)
Parameters:stackTypeChartStackType

The stack type.

stackGroupstring

The name of the stack group.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

Example:
C#
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series =&gt; series.Bar(s =&gt; s.Sales).Stack("Female"))
);

Sets the name of the stack that this series belongs to. Each unique name creates a new stack.

C#
public virtual ChartSeriesBuilder<T> Stack(string stackGroup)
Parameters:stackGroupstring

The name of the stack group.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

Example:
C#
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series =&gt; series.Bar(s =&gt; s.Sales).Stack("Female"))
);

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 ChartSeriesBuilder<T> StartAngle(double value)
Parameters:valuedouble

The value for StartAngle

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

Specifies the preferred rendering style.

C#
public ChartSeriesBuilder<T> Style(ChartSeriesStyle value)
Parameters:valueChartSeriesStyle

The value for Style

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> SummaryField(string value)
Parameters:valuestring

The value for SummaryField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The configuration options of the target

C#
public ChartSeriesBuilder<T> Target(Action<ChartSeriesTargetSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesTargetSettingsBuilder<T>>

The ChartSeriesTargetSettingsBuilder<T> for the target setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field containing the target value.

C#
public ChartSeriesBuilder<T> TargetField(string value)
Parameters:valuestring

The value for TargetField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data item field which contains the series to value.

C#
public ChartSeriesBuilder<T> ToField(string value)
Parameters:valuestring

The value for ToField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series tooltip configuration options.

C#
public ChartSeriesBuilder<T> Tooltip(Action<ChartSeriesTooltipSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesTooltipSettingsBuilder<T>>

The ChartSeriesTooltipSettingsBuilder<T> for the tooltip setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The trendline configuration options.

C#
public ChartSeriesBuilder<T> Trendline(Action<ChartSeriesTrendlineSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesTrendlineSettingsBuilder<T>>

The ChartSeriesTrendlineSettingsBuilder<T> for the trendline setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The data item field which contains the series upper value.

C#
public ChartSeriesBuilder<T> UpperField(string value)
Parameters:valuestring

The value for UpperField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

Sets the visible property of a chart series

C#
public ChartSeriesBuilder<T> Visible(bool value)
Parameters:valuebool

The value for Visible

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> VisibleInLegend(bool value)
Parameters:valuebool

The value for VisibleInLegend

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> VisibleInLegendField(string value)
Parameters:valuestring

The value for VisibleInLegendField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

A function that can be used to create a custom visual for the points. Applicable for bar, column, pie, donut, funnel, pyramid, line, scatterLine, 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, pyramid, line and scatterLine series..

C#
public ChartSeriesBuilder<T> Visual(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

A function that can be used to create a custom visual for the points. Applicable for bar, column, pie, donut, funnel, pyramid, line, scatterLine, 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, pyramid, line and scatterLine series..

C#
public ChartSeriesBuilder<T> Visual(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The chart series whiskers configuration.

C#
public ChartSeriesBuilder<T> Whiskers(Action<ChartSeriesWhiskersSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartSeriesWhiskersSettingsBuilder<T>>

The ChartSeriesWhiskersSettingsBuilder<T> for the whiskers setting.

Returns:

ChartSeriesBuilder<T>

Returns the current instance of ChartSeriesBuilder<T> .

The line width.

C#
public ChartSeriesBuilder<T> Width(double value)
Parameters:valuedouble

The value for Width

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> XAxis(string value)
Parameters:valuestring

The value for XAxis

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> XErrorHighField(string value)
Parameters:valuestring

The value for XErrorHighField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> XErrorLowField(string value)
Parameters:valuestring

The value for XErrorLowField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data item field containing the X value.

C#
public ChartSeriesBuilder<T> XField(string value)
Parameters:valuestring

The value for XField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> YAxis(string value)
Parameters:valuestring

The value for YAxis

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> YErrorHighField(string value)
Parameters:valuestring

The value for YErrorHighField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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

C#
public ChartSeriesBuilder<T> YErrorLowField(string value)
Parameters:valuestring

The value for YErrorLowField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

The data item field containing the Y value.

C#
public ChartSeriesBuilder<T> YField(string value)
Parameters:valuestring

The value for YField

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.

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 ChartSeriesBuilder<T> ZIndex(double value)
Parameters:valuedouble

The value for ZIndex

Returns:

ChartSeriesBuilder<T>

Returns the current ChartSeriesBuilder<T> instance.