Defines the fluent interface for configuring Bar series.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TSeries
TSeriesBuilder
Syntax:
public class ChartBarSeriesBuilderBase<TSeries, TSeriesBuilder> : ChartSeriesBuilderBase<TSeries, TSeriesBuilder> where TSeries : IBarSeries where TSeriesBuilder : ChartBarSeriesBuilderBase<TSeries, TSeriesBuilder>
Inheritance: objectChartSeriesBuilderBase<TSeries, TSeriesBuilder>ChartBarSeriesBuilderBase<TSeries, TSeriesBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the ChartBarSeriesBuilderBase<TSeries, TSeriesBuilder> class.
public ChartBarSeriesBuilderBase(TSeries series)
The series.
Methods
Sets the aggregate function for Date series. This function is used when a category (an year, month, etc.) contains two or more points.
public virtual TSeriesBuilder Aggregate(ChartSeriesAggregate aggregate)
The aggregate function name.
Returns:TSeriesBuilder
Configures the border of the series.
public TSeriesBuilder Border(Action<ChartBorderBuilder> configurator)
The action that configures the border settings.
Returns:TSeriesBuilder
Sets the border of the chart series.
public TSeriesBuilder Border(int width, string color, ChartDashType dashType)
The border width.
colorstringThe border color (CSS syntax).
dashTypeChartDashTypeThe border dash type.
Returns:TSeriesBuilder
Sets the Model property that holds the category name or date.
public TSeriesBuilder CategoryField(string categoryField)
The name of the Model property.
Returns:TSeriesBuilder
Sets the Model property that holds the series color.
public TSeriesBuilder ColorField(string colorField)
The name of the Model property.
Returns:TSeriesBuilder
Sets the Model property that holds the series value.
public TSeriesBuilder Field(string field)
The name of the Model property.
Returns:TSeriesBuilder
Sets the distance between category clusters.
A value of 1 means that there is a total of 1 column width / bar height between categories. The distance is distributed evenly on each side. The default value is 1.5Configures the Bar Chart labels.
public virtual TSeriesBuilder Labels(Action<ChartBarLabelsBuilder> configurator)
The action that configures the labels settings.
Returns:TSeriesBuilder
Sets the visibility of Bar Chart labels.
public virtual TSeriesBuilder Labels(bool visible)
The value that sets the visibility of the labels.
Returns:TSeriesBuilder
Sets the bar color for negative values.
public TSeriesBuilder NegativeColor(string color)
The color value (CSS syntax).
Returns:TSeriesBuilder
Sets the Model property that holds the series note text.
public TSeriesBuilder NoteTextField(string noteTextField)
The name of the Model property.
Returns:TSeriesBuilder
Sets the series effects overlay.
public TSeriesBuilder Overlay(ChartBarSeriesOverlay overlay)
The enum value that sets the overlay. The default is ChartBarSeriesOverlay.Glass
Returns:TSeriesBuilder
Sets a value indicating the distance between series points within a category.
public TSeriesBuilder Spacing(double spacing)
Value of 1 means that the distance between bars is equal to their width. The default value is 0
Returns:TSeriesBuilder
Indicates if the series must be stacked.
public virtual TSeriesBuilder Stack(bool stacked)
A value that enables/disables the Stack option.
Returns:TSeriesBuilder
Configures the stack that the series belongs to.
public virtual TSeriesBuilder Stack(ChartStackType stackType, string stackGroup = null)
The stack type.
stackGroupstringThe name of the stack group.
Returns:TSeriesBuilder
Sets the name of the stack that this series belongs to. Each unique name creates a new stack.
public virtual TSeriesBuilder Stack(string stackGroup)
The name of the stack group.
Returns:TSeriesBuilder
Sets a JavaScript function that creates a custom visual for the points.
public TSeriesBuilder Visual(string handler)
The name of the JavaScript function.
Returns:TSeriesBuilder
Defines the whiskers configuration of the chart series.
public TSeriesBuilder Whiskers(Action<ChartSeriesWhiskersSettingsBuilder> configurator)
The action that configures the whiskers settings.
Returns:TSeriesBuilder