Defines the fluent interface for configuring axes.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TAxis
TValue
TAxisBuilder
The type of the series builder.
Syntax:
public abstract class ChartAxisBuilderBase<TAxis, TValue, TAxisBuilder> where TAxis : IChartAxis<TValue> where TValue : struct where TAxisBuilder : ChartAxisBuilderBase<TAxis, TValue, TAxisBuilder>
Inheritance: objectChartAxisBuilderBase<TAxis, TValue, TAxisBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the ChartAxisBuilderBase<TAxis, TValue, TAxisBuilder> class.
protected ChartAxisBuilderBase(TAxis axis)
The axis.
Properties
Axis
TAxis
Gets or sets the axis.
public TAxis Axis { get; }
The axis.
Methods
Sets the background color of the axis.
public TAxisBuilder Background(string background)
The value that configures the background color.
Returns:TAxisBuilder
Sets the color for all axis elements. It can be overridden by the individual settings (Labels or Lines).
public TAxisBuilder Color(string color)
The value of the color.
Returns:TAxisBuilder
Defines the crosshair configuration options.
public TAxisBuilder Crosshair(Action<ChartAxisCrosshairBuilder> configurator)
The action that configures the crosshair settings.
Returns:TAxisBuilder
Configures the axis labels.
public virtual TAxisBuilder Labels(Action<ChartAxisLabelsBuilder> configurator)
The action that configures the labels options.
Returns:TAxisBuilder
Sets the visibility of axis labels. By default, the labels are visible.
public TAxisBuilder Labels(bool visible)
The option that toggles the visibility of the labels.
Returns:TAxisBuilder
Defines the configuration of the axis lines. The line settings also affect the major and minor ticks but not the grid lines.
public TAxisBuilder Line(Action<ChartLineBuilder> configurator)
The action that configures the lines options.
Returns:TAxisBuilder
Sets the width, color, and dash type of the lines and enables them. The line settings also affect the major and minor ticks but not the grid lines.
public TAxisBuilder Line(int width, string color, ChartDashType dashType)
The value of the width.
colorstringThe value of the color (CSS syntax).
dashTypeChartDashTypeThe enum value that defines the dash type.
Returns:TAxisBuilder
Configures the axis major grid lines. These lines are an extension of the major ticks through the body of the chart.
public TAxisBuilder MajorGridLines(Action<ChartMajorGridLinesBuilder> configurator)
The action that configures the major grid lines options.
Returns:TAxisBuilder
Sets the width, color, and dash type of the major grid lines and enables them. These lines are an extension of the major ticks through the body of the chart.
public TAxisBuilder MajorGridLines(int width, string color, ChartDashType dashType)
The value of the width.
colorstringThe value of the color (CSS syntax).
dashTypeChartDashTypeThe enum value that defines the dash type.
Returns:TAxisBuilder
Configures the axis major ticks.
public TAxisBuilder MajorTicks(Action<ChartAxisTicksBuilder> configurator)
The action that configures the major ticks options.
Returns:TAxisBuilder
Configures the axis minor grid lines. These lines are an extension of the minor ticks through the body of the chart.
public TAxisBuilder MinorGridLines(Action<ChartMinorGridLinesBuilder> configurator)
The action that configures the minor grid lines options.
Returns:TAxisBuilder
Sets the width, color, and dash type of the minor grid lines and enables them. These lines are an extension of the minor ticks through the body of the chart.
public TAxisBuilder MinorGridLines(int width, string color, ChartDashType dashType)
The value of the width.
colorstringThe value of the color (CSS syntax).
dashTypeChartDashTypeThe enum value that defines the dash type.
Returns:TAxisBuilder
Configures the axis minor ticks.
public TAxisBuilder MinorTicks(Action<ChartAxisTicksBuilder> configurator)
The action that configures the minor ticks options.
Returns:TAxisBuilder
Sets the axis name.
public TAxisBuilder Name(string name)
The value that configures the axis name.
Returns:TAxisBuilder
If set to "true", the Chart will narrow the value axis range to display data points in detail. When the option is disabled, the Chart will force the automatic axis range to start from 0 or the explicitly specified.
public TAxisBuilder NarrowRange(bool narrowRange)
The value that enables or disables the NarrowRange option.
Returns:TAxisBuilder
Defines the name of the pane that the axis must be rendered in. The axis will be rendered in the first (default) pane if not set.
public TAxisBuilder Pane(string pane)
The value that configures the name of the pane.
Returns:TAxisBuilder
Defines the plot bands of the axis.
public TAxisBuilder PlotBands(Action<ChartAxisPlotBandsFactory<TAxis, TValue>> configurator)
The action that configures the plot bands options.
Returns:TAxisBuilder
Defines the configuration of the range labels of the date axis.
public virtual TAxisBuilder RangeLabels(Action<ChartAxisRangeLabelsBuilder> configurator)
The action that configures the range labels settings.
Returns:TAxisBuilder
Reverses the direction of the axis.
public TAxisBuilder Reverse()
TAxisBuilder
If set to "true", the axis direction will be reversed.
public TAxisBuilder Reverse(bool reverse)
A value indicating if the axis labels must be rendered in reverse.
Returns:TAxisBuilder
Defines the title configuration of the axis.
public TAxisBuilder Title(Action<ChartAxisTitleBuilder> configurator)
The action that configures the title settings.
Returns:TAxisBuilder
Sets the text of the axis title.
public TAxisBuilder Title(string title)
The value that configures the text of the title.
Returns:TAxisBuilder
Sets the visibility of the axis.
public TAxisBuilder Visible(bool visible)
The option that toggles the visibility of the axis.
Returns:TAxisBuilder