Defines the fluent API for configuring ChartCategoryAxis
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ChartCategoryAxisBuilder<T> where T : class
Inheritance: objectChartCategoryAxisBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the ChartCategoryAxisBuilder<T> class.
public ChartCategoryAxisBuilder(ChartCategoryAxis<T> container)
The ChartCategoryAxis<T> container
Properties
Gets the ChartCategoryAxis<T> container.
protected ChartCategoryAxis<T> Container { get; }
Methods
The discrete categoryAxis.baseUnitStep values when either categoryAxis.baseUnit is set to "fit" orcategoryAxis.baseUnitStep is set to "auto".The axis will try to divide the active period into successively larger intervals. It will start from x-second intervals, where x is picked from the autoBaseUnitSteps.seconds array. Then it will move to minutes, seconds and so on. This will continue until the number of intervals is less thanmaxDateGroups.
public ChartCategoryAxisBuilder<T> AutoBaseUnitSteps(Action<ChartCategoryAxisAutoBaseUnitStepsSettingsBuilder<T>> configurator)
The ChartCategoryAxisAutoBaseUnitStepsSettingsBuilder<T> for the autobaseunitsteps setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Category index at which the first value axis crosses this axis (when set as an object).Category indices at which the value axes cross the category axis (when set as an array).
public ChartCategoryAxisBuilder<T> AxisCrossingValue(params object[] value)
The value for AxisCrossingValue
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The background color of the axis.
public ChartCategoryAxisBuilder<T> Background(string value)
The value for Background
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
Specifies the base time interval for the axis.
public ChartCategoryAxisBuilder<T> BaseUnit(ChartAxisBaseUnit value)
The value for BaseUnit
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The step (interval) between categories in base units. Setting it to "auto" will set the step to such value that the total number of categories does not exceed categoryAxis.maxDateGroups.This option is ignored if categoryAxis.baseUnit is set to "fit".
public ChartCategoryAxisBuilder<T> BaseUnitStep(int value)
The value for BaseUnitStep
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
Sets the axis categories.
public ChartCategoryAxisBuilder<T> Categories(params DateTime[] value)
The array that holds the category values.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Sets the axis categories.
public ChartCategoryAxisBuilder<T> Categories(params string[] categories)
The array that holds the category values.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Defines the bound categories.
public ChartCategoryAxisBuilder<T> Categories<TValue>(Expression<Func<T, TValue>> expression)
The expression used to extract the categories value from the chart model.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb. Can be overridden by categoryAxis.labels.color andcategoryAxis.line.color.
public ChartCategoryAxisBuilder<T> Color(string value)
The value for Color
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The crosshair configuration options.
public ChartCategoryAxisBuilder<T> Crosshair(Action<ChartCategoryAxisCrosshairSettingsBuilder<T>> configurator)
The ChartCategoryAxisCrosshairSettingsBuilder<T> for the crosshair setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Sets the category axis type to date for displaying chronological data.
public ChartCategoryAxisBuilder<T> Date()
Returns the current instance of ChartCategoryAxisBuilder<T> .
The data item field which contains the category name. Requires the dataSource option to be set. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.
public ChartCategoryAxisBuilder<T> Field(string value)
The value for Field
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The highlight configuration options for the category axis.
public ChartCategoryAxisBuilder<T> Highlight(Action<ChartCategoryAxisHighlightSettingsBuilder<T>> configurator)
The ChartCategoryAxisHighlightSettingsBuilder<T> for the highlight setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
If set to true the chart will position categories and series points on major ticks. This removes the empty space before and after the series.The default value is false except for "area", "verticalArea", "rangeArea" and "verticalRangeArea".
public ChartCategoryAxisBuilder<T> Justify()
Returns the current ChartCategoryAxisBuilder<T> instance.
If set to true the chart will position categories and series points on major ticks. This removes the empty space before and after the series.The default value is false except for "area", "verticalArea", "rangeArea" and "verticalRangeArea".
public ChartCategoryAxisBuilder<T> Justify(bool value)
The value for Justify
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The axis labels configuration.
public ChartCategoryAxisBuilder<T> Labels(Action<ChartCategoryAxisLabelsSettingsBuilder<T>> configurator)
The ChartCategoryAxisLabelsSettingsBuilder<T> for the labels setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
public ChartCategoryAxisBuilder<T> Line(Action<ChartCategoryAxisLineSettingsBuilder<T>> configurator)
The ChartCategoryAxisLineSettingsBuilder<T> for the line setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<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 ChartCategoryAxisBuilder<T> MajorGridLines(Action<ChartCategoryAxisMajorGridLinesSettingsBuilder<T>> configurator)
The ChartCategoryAxisMajorGridLinesSettingsBuilder<T> for the majorgridlines setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The configuration of the category axis major ticks.
public ChartCategoryAxisBuilder<T> MajorTicks(Action<ChartCategoryAxisMajorTicksSettingsBuilder<T>> configurator)
The ChartCategoryAxisMajorTicksSettingsBuilder<T> for the majorticks setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The last date displayed on the category date axis. By default, the minimum date is the same as the last category. This is often used in combination with the categoryAxis.min and categoryAxis.roundToBaseUnit options to set up a fixed date range.
public ChartCategoryAxisBuilder<T> Max(object value)
The value for Max
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The maximum number of groups (categories) to display whencategoryAxis.baseUnit is set to "fit" orcategoryAxis.baseUnitStep is set to "auto".
public ChartCategoryAxisBuilder<T> MaxDateGroups(double value)
The value for MaxDateGroups
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The maximum number of ticks, labels and grid lines to display. Applicable for date category axis. You can combine this property with a bigger value of the maxDateGroups property to increase the number of rendered data points in the Chart without drawing too many labels, ticks, and grid lines.
public ChartCategoryAxisBuilder<T> MaxDivisions(double value)
The value for MaxDivisions
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The first date displayed on the category date axis. By default, the minimum date is the same as the first category. This is often used in combination with the categoryAxis.min and categoryAxis.roundToBaseUnit options to set up a fixed date range.
public ChartCategoryAxisBuilder<T> Min(object value)
The value for Min
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
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 ChartCategoryAxisBuilder<T> MinorGridLines(Action<ChartCategoryAxisMinorGridLinesSettingsBuilder<T>> configurator)
The ChartCategoryAxisMinorGridLinesSettingsBuilder<T> for the minorgridlines setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The configuration of the category axis minor ticks.
public ChartCategoryAxisBuilder<T> MinorTicks(Action<ChartCategoryAxisMinorTicksSettingsBuilder<T>> configurator)
The ChartCategoryAxisMinorTicksSettingsBuilder<T> for the minorticks setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The unique axis name. Used to associate a series with a category axis using the series.categoryAxis option.
public ChartCategoryAxisBuilder<T> Name(string value)
The value for Name
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The category axis notes configuration.
public ChartCategoryAxisBuilder<T> Notes(Action<ChartCategoryAxisNotesSettingsBuilder<T>> configurator)
The ChartCategoryAxisNotesSettingsBuilder<T> for the notes setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The name of the pane that the category axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
public ChartCategoryAxisBuilder<T> Pane(string value)
The value for Pane
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The plot bands of the category axis.
public ChartCategoryAxisBuilder<T> PlotBands(Action<ChartCategoryAxisPlotBandFactory<T>> configurator)
The ChartCategoryAxisPlotBandFactory<T> for the plotbands setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The configuration of the date axis date range labels.
public ChartCategoryAxisBuilder<T> RangeLabels(Action<ChartCategoryAxisRangeLabelsSettingsBuilder<T>> configurator)
The ChartCategoryAxisRangeLabelsSettingsBuilder<T> for the rangelabels setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
If set to true the category axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
public ChartCategoryAxisBuilder<T> Reverse()
Returns the current ChartCategoryAxisBuilder<T> instance.
If set to true the category axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
public ChartCategoryAxisBuilder<T> Reverse(bool value)
The value for Reverse
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
If set to true the chart will round the first and last date to the nearest base unit.The roundToBaseUnit option will be ignored if series.type is set to "bar", "column", "boxPlot", "ohlc", "candlestick" or "waterfall".
public ChartCategoryAxisBuilder<T> RoundToBaseUnit(bool value)
The value for RoundToBaseUnit
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The selected axis range. If set, axis selection will be enabled.The range is index based, starting from 0. Categories with indexes in the range [select.from, select.to) will be selected. That is, the last category in the range will not be included in the selection.If the categories are dates, the range must also be specified with date values.
public ChartCategoryAxisBuilder<T> Select(Action<ChartCategoryAxisSelectSettingsBuilder<T>> configurator)
The ChartCategoryAxisSelectSettingsBuilder<T> for the select setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Sets the selected axis range. The range is index based, starting from 0. Categories with indexes in the range will be selected. The last category in the range will not be included in the selection. If the categories are dates, the range must be specified with DateTime values.
public ChartCategoryAxisBuilder<T> Select(object from, object to)
The selection range start.
toobjectThe selection range end.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
The angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.
public ChartCategoryAxisBuilder<T> StartAngle(double value)
The value for StartAngle
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The title configuration of the category axis.
public ChartCategoryAxisBuilder<T> Title(Action<ChartCategoryAxisTitleSettingsBuilder<T>> configurator)
The ChartCategoryAxisTitleSettingsBuilder<T> for the title setting.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Sets the title of the category axis.
public ChartCategoryAxisBuilder<T> Title(string value)
The value that configures the title.
Returns:Returns the current instance of ChartCategoryAxisBuilder<T> .
Specifies the category axis type.
public ChartCategoryAxisBuilder<T> Type(ChartCategoryAxisType value)
The value for Type
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
If set to true the chart will display the category axis. By default the category axis is visible.
public ChartCategoryAxisBuilder<T> Visible(bool value)
The value for Visible
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.
The week start day when categoryAxis.baseUnit is set to "weeks".The supported values are: kendo.days.Sunday - equal to 0; kendo.days.Monday - equal to 1; kendo.days.Tuesday - equal to 2; kendo.days.Wednesday - equal to 3; kendo.days.Thursday - equal to 4; kendo.days.Friday - equal to 5 or kendo.days.Saturday - equal to 6.
public ChartCategoryAxisBuilder<T> WeekStartDay(double value)
The value for WeekStartDay
Returns:Returns the current ChartCategoryAxisBuilder<T> instance.