# ChartXAxisPlotBandFactory

## Properties

### Chart - [Chart](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/chart)

The common settings for all Chart series.

## Methods

### Add(System.Double,System.Double,System.String)

Adds an item to the plot bands collection.

#### Parameters

##### from - `System.Double`

The start position of the plot band in axis units.

##### to - `System.Double`

The end position of the plot band in axis units.

##### color - `System.String`

The color of the plot band.

#### RETURNS

Returns a new instance of [ChartXAxisPlotBandBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisplotbandbuilder) for further configuration.

#### Example

```
 
            @(Html.Kendo().Chart()
                .Name("chart")
                .XAxis(axis =>
                {
                    axis.PlotBands(bands =>
                    {
                        bands.Add(20000, 40000, "green");
                    });
                })
            )
             
```

### Add()

Adds an item to the plot bands collection.

#### RETURNS

Returns a new instance of [ChartXAxisPlotBandBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/chartxaxisplotbandbuilder) for further configuration.

#### Example

```
 
            @(Html.Kendo().Chart()
                .Name("chart")
                .XAxis(axis =>
                {
                    axis.PlotBands(bands =>
                    {
                        bands.Add(20000, 40000, "green");
                    });
                })
            )
             
```
