# ChartXAxisBuilder

## Methods

### Date()

Sets the axis type to date for displaying chronological data.

#### Example

```
 
            @(Html.Kendo().Chart(Model)
                .Name("chart")
                .Series(series => {
                    series.ScatterLine(model => model.Date, model => model.Close);
                })
                .XAxis(axis => axis
                    .Date()
                )
            )
             
```

### Logarithmic()

Sets the axis type to logarithmic.

#### Example

```
 
            @(Html.Kendo().Chart()
                .Name("chart")
                .Series(series =>
                {
                    series.Scatter(new int[][] {
                        new[] { 5, 2 },
                        new[] { 7, 2 },
                        new[] { 11123, 2 }
                    });
                 })
                .XAxis(axis => axis
                    .Logarithmic()
                )
            )
             
```

### Numeric()

Sets the axis type to numeric.

#### Example

```
 
            @(Html.Kendo().Chart()
                .Name("chart")
                .Series(series =>
                {
                    series.Scatter(new double[][] {
                        new[] { 16.4, 5.4 },
                        new[] { 21.7, 2 },
                        new[] { 25.4, 3 }
                    });
                 })
                .XAxis(axis => axis
                    .Numeric()
                )
            )
             
```

### Polar()

Sets the axis type to polar.

#### Example

```
 
            @(Html.Kendo().Chart(Model)
                .Name("chart")
                .Series(series =>
                {
                    series.PolarLine(model => model.Azimuth, model => model.Altitude);
                 })
                .XAxis(axis => axis
                    .Polar()
                    .StartAngle(-90)
                    .MajorUnit(30)
                )
            )
             
```

### Title(System.String)

Sets the title of the axis.

#### Parameters

##### value - `System.String`

The value that configures the title.

#### Example

```
 
            @(Html.Kendo().Chart()
                .Name("chart")
                .XAxis(axis => axis
                    .Numeric()
                    .Title(title => title.Text("Wind Speed [km/h]"))
                )
            )
             
```

### AxisCrossingValue(System.Object\[])

Value at which the Y axis crosses this axis. (Only for object)Value indices at which the Y axes cross the value axis. (Only for array)Date at which the Y axis crosses this axis. (Only for date)

#### Parameters

##### value - `System.Object[]`

The value for AxisCrossingValue

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Background(System.String)

The background color of the axis.

#### Parameters

##### value - `System.String`

The value for Background

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### BaseUnit(System.String)

The base time interval for the axis labels. The default baseUnit is determined automatically from the value range. Available options: milliseconds; seconds; minutes; hours; days; weeks; months or years.

#### Parameters

##### value - `System.String`

The value for BaseUnit

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Categories(System.Object\[])

The category names. Applicable for charts with X and Y category axes (heatmap).

#### Parameters

##### value - `System.Object[]`

The value for Categories

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Color(System.String)

The color of the axis. Accepts a valid CSS color string, including hex and rgb.

#### Parameters

##### value - `System.String`

The value for Color

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Crosshair(System.Action)

The crosshair configuration options.

#### Parameters

##### configurator - System.Action<[ChartXAxisCrosshairSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxiscrosshairsettingsbuilder)>

The configurator for the crosshair setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### Labels(System.Action)

The axis labels configuration.

#### Parameters

##### configurator - System.Action<[ChartXAxisLabelsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxislabelssettingsbuilder)>

The configurator for the labels setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### Line(System.Action)

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

#### Parameters

##### configurator - System.Action<[ChartXAxisLineSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxislinesettingsbuilder)>

The configurator for the line setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### MajorGridLines(System.Action)

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.

#### Parameters

##### configurator - System.Action<[ChartXAxisMajorGridLinesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxismajorgridlinessettingsbuilder)>

The configurator for the majorgridlines setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### MinorGridLines(System.Action)

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.

#### Parameters

##### configurator - System.Action<[ChartXAxisMinorGridLinesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisminorgridlinessettingsbuilder)>

The configurator for the minorgridlines setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### MinorTicks(System.Action)

The configuration of the x axis minor ticks.

#### Parameters

##### configurator - System.Action<[ChartXAxisMinorTicksSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisminortickssettingsbuilder)>

The configurator for the minorticks setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### MajorTicks(System.Action)

The configuration of the scatter chart x axis major ticks.

#### Parameters

##### configurator - System.Action<[ChartXAxisMajorTicksSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxismajortickssettingsbuilder)>

The configurator for the majorticks setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### MajorUnit(System.Double)

The interval between major divisions. If this is a date axis the value represents the number of xAxis.baseUnits between major divisions. If the xAxis.type is set to "log", the majorUnit value will be used for the base of the logarithm.

#### Parameters

##### value - `System.Double`

The value for MajorUnit

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Max(System.Object)

The maximum value of the axis.

#### Parameters

##### value - `System.Object`

The value for Max

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Min(System.Object)

The minimum value of the axis.

#### Parameters

##### value - `System.Object`

The value for Min

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### MinorUnit(System.Double)

The interval between minor divisions. It defaults to 1/5 of the xAxis.majorUnit. If the xAxis.type is set to "log", the minorUnit value represents the number of divisions between two major units and defaults to the major unit minus one.

#### Parameters

##### value - `System.Double`

The value for MinorUnit

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Name(System.String)

The unique axis name. Used to associate a series with a x axis using the series.xAxis option.

#### Parameters

##### value - `System.String`

The value for Name

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### NarrowRange(System.Boolean)

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

#### Parameters

##### value - `System.Boolean`

The value for NarrowRange

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### NarrowRange()

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

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Pane(System.String)

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.

#### Parameters

##### value - `System.String`

The value for Pane

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### PlotBands(System.Action)

The plot bands of the x axis.

#### Parameters

##### configurator - System.Action<[ChartXAxisPlotBandFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisplotbandfactory)>

The configurator for the plotbands setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### Reverse(System.Boolean)

If set to true the value axis direction will be reversed. By default values increase from left to right and from bottom to top.

#### Parameters

##### value - `System.Boolean`

The value for Reverse

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Reverse()

If set to true the value axis direction will be reversed. By default values increase from left to right and from bottom to top.

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### StartAngle(System.Double)

The angle (degrees) where the 0 value is placed. Applicable to polar series.Angles increase counterclockwise and zero is to the right. Negative values are acceptable.

#### Parameters

##### value - `System.Double`

The value for StartAngle

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Title(System.Action)

The title configuration of the scatter chart x axis.

#### Parameters

##### configurator - System.Action<[ChartXAxisTitleSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxistitlesettingsbuilder)>

The configurator for the title setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .

### Type(System.String)

The axis type.The supported values are: "numeric" - numeric axis.; "date" - specialized axis for displaying chronological data. or "log" - logarithmic axis..

#### Parameters

##### value - `System.String`

The value for Type

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Visible(System.Boolean)

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

#### Parameters

##### value - `System.Boolean`

The value for Visible

#### RETURNS

Returns the current [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) instance.

### Notes(System.Action)

The x axis notes configuration.

#### Parameters

##### configurator - System.Action<[ChartXAxisNotesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisnotessettingsbuilder)>

The configurator for the notes setting.

#### RETURNS

Returns the current instance of [ChartXAxisBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisbuilder) .
