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

Defines the fluent API for configuring ChartAxisDefaultsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectChartAxisDefaultsSettingsBuilder<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 ChartAxisDefaultsSettingsBuilder<T> class.

C#
public ChartAxisDefaultsSettingsBuilder(ChartAxisDefaultsSettings<T> container)
Parameters:containerChartAxisDefaultsSettings<T>

The ChartAxisDefaultsSettings<T> container

Properties

Gets the ChartAxisDefaultsSettings<T> container.

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

Methods

The background color of the axis.

C#
public ChartAxisDefaultsSettingsBuilder<T> Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartAxisDefaultsSettingsBuilder<T> Color(string value)
Parameters:valuestring

The value for Color

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The crosshair configuration options.

C#
public ChartAxisDefaultsSettingsBuilder<T> Crosshair(Action<ChartAxisDefaultsCrosshairSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsCrosshairSettingsBuilder<T>>

The ChartAxisDefaultsCrosshairSettingsBuilder<T> for the crosshair setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The axis labels configuration.

C#
public ChartAxisDefaultsSettingsBuilder<T> Labels(Action<ChartAxisDefaultsLabelsSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsLabelsSettingsBuilder<T>>

The ChartAxisDefaultsLabelsSettingsBuilder<T> for the labels setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.

C#
public ChartAxisDefaultsSettingsBuilder<T> Line(Action<ChartAxisDefaultsLineSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsLineSettingsBuilder<T>>

The ChartAxisDefaultsLineSettingsBuilder<T> for the line setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The configuration of the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.

C#
public ChartAxisDefaultsSettingsBuilder<T> MajorGridLines(Action<ChartAxisDefaultsMajorGridLinesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsMajorGridLinesSettingsBuilder<T>>

The ChartAxisDefaultsMajorGridLinesSettingsBuilder<T> for the majorgridlines setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The configuration of the axis major ticks.

C#
public ChartAxisDefaultsSettingsBuilder<T> MajorTicks(Action<ChartAxisDefaultsMajorTicksSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsMajorTicksSettingsBuilder<T>>

The ChartAxisDefaultsMajorTicksSettingsBuilder<T> for the majorticks setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The configuration of the minor grid lines. These are the lines that are an extension of the minor ticks through the body of the chart.

C#
public ChartAxisDefaultsSettingsBuilder<T> MinorGridLines(Action<ChartAxisDefaultsMinorGridLinesSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsMinorGridLinesSettingsBuilder<T>>

The ChartAxisDefaultsMinorGridLinesSettingsBuilder<T> for the minorgridlines setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

The configuration of the axis minor ticks.

C#
public ChartAxisDefaultsSettingsBuilder<T> MinorTicks(Action<ChartAxisDefaultsMinorTicksSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsMinorTicksSettingsBuilder<T>>

The ChartAxisDefaultsMinorTicksSettingsBuilder<T> for the minorticks setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

If set to true the chart will prevent the axis range from snapping to 0. Setting it to false will force the axis range to snap to 0.

C#
public ChartAxisDefaultsSettingsBuilder<T> NarrowRange()
Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

If set to true the chart will prevent the axis range from snapping to 0. Setting it to false will force the axis range to snap to 0.

C#
public ChartAxisDefaultsSettingsBuilder<T> NarrowRange(bool value)
Parameters:valuebool

The value for NarrowRange

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The name of the pane that the axis should be rendered in. The axis will be rendered in the first (default) pane if not set.

C#
public ChartAxisDefaultsSettingsBuilder<T> Pane(string value)
Parameters:valuestring

The value for Pane

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The plot bands of the axis.

C#
public ChartAxisDefaultsSettingsBuilder<T> PlotBands(Action<ChartAxisDefaultsSettingsPlotBandFactory<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsSettingsPlotBandFactory<T>>

The ChartAxisDefaultsSettingsPlotBandFactory<T> for the plotbands setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

If set to true the axis direction will be reversed. By default categories are listed from left to right and from bottom to top.

C#
public ChartAxisDefaultsSettingsBuilder<T> Reverse()
Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

If set to true the axis direction will be reversed. By default categories are listed from left to right and from bottom to top.

C#
public ChartAxisDefaultsSettingsBuilder<T> Reverse(bool value)
Parameters:valuebool

The value for Reverse

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.

C#
public ChartAxisDefaultsSettingsBuilder<T> StartAngle(double value)
Parameters:valuedouble

The value for StartAngle

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.

The title configuration of the axis.

C#
public ChartAxisDefaultsSettingsBuilder<T> Title(Action<ChartAxisDefaultsTitleSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartAxisDefaultsTitleSettingsBuilder<T>>

The ChartAxisDefaultsTitleSettingsBuilder<T> for the title setting.

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .

If set to true the chart will display the axis. By default the axis is visible.

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

The value for Visible

Returns:

ChartAxisDefaultsSettingsBuilder<T>

Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.