Defines the fluent API for configuring ChartAxisDefaultsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartAxisDefaultsSettingsBuilder<T> where T : class
Inheritance: objectChartAxisDefaultsSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartAxisDefaultsSettingsBuilder<T> class.
public ChartAxisDefaultsSettingsBuilder(ChartAxisDefaultsSettings<T> container)
The ChartAxisDefaultsSettings<T> container
Properties
Gets the ChartAxisDefaultsSettings<T> container.
protected ChartAxisDefaultsSettings<T> Container { get; }
Methods
The background color of the axis.
public ChartAxisDefaultsSettingsBuilder<T> Background(string value)
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.
public ChartAxisDefaultsSettingsBuilder<T> Color(string value)
The value for Color
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.
The crosshair configuration options.
public ChartAxisDefaultsSettingsBuilder<T> Crosshair(Action<ChartAxisDefaultsCrosshairSettingsBuilder<T>> configurator)
The ChartAxisDefaultsCrosshairSettingsBuilder<T> for the crosshair setting.
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .
The axis labels configuration.
public ChartAxisDefaultsSettingsBuilder<T> Labels(Action<ChartAxisDefaultsLabelsSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> Line(Action<ChartAxisDefaultsLineSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> MajorGridLines(Action<ChartAxisDefaultsMajorGridLinesSettingsBuilder<T>> configurator)
The ChartAxisDefaultsMajorGridLinesSettingsBuilder<T> for the majorgridlines setting.
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .
The configuration of the axis major ticks.
public ChartAxisDefaultsSettingsBuilder<T> MajorTicks(Action<ChartAxisDefaultsMajorTicksSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> MinorGridLines(Action<ChartAxisDefaultsMinorGridLinesSettingsBuilder<T>> configurator)
The ChartAxisDefaultsMinorGridLinesSettingsBuilder<T> for the minorgridlines setting.
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current instance of ChartAxisDefaultsSettingsBuilder<T> .
The configuration of the axis minor ticks.
public ChartAxisDefaultsSettingsBuilder<T> MinorTicks(Action<ChartAxisDefaultsMinorTicksSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> NarrowRange()
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.
public ChartAxisDefaultsSettingsBuilder<T> NarrowRange(bool value)
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.
public ChartAxisDefaultsSettingsBuilder<T> Pane(string value)
The value for Pane
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.
The plot bands of the axis.
public ChartAxisDefaultsSettingsBuilder<T> PlotBands(Action<ChartAxisDefaultsSettingsPlotBandFactory<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> Reverse()
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.
public ChartAxisDefaultsSettingsBuilder<T> Reverse(bool value)
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.
public ChartAxisDefaultsSettingsBuilder<T> StartAngle(double value)
The value for StartAngle
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.
The title configuration of the axis.
public ChartAxisDefaultsSettingsBuilder<T> Title(Action<ChartAxisDefaultsTitleSettingsBuilder<T>> configurator)
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.
public ChartAxisDefaultsSettingsBuilder<T> Visible(bool value)
The value for Visible
Returns:ChartAxisDefaultsSettingsBuilder<T>
Returns the current ChartAxisDefaultsSettingsBuilder<T> instance.