# Linear Gauge Scale

The scale of the Telerik UI LinearGauge for ASP.NET MVC renders the values, pointers and labels. It can be customized by adding the  `Scale` option to the widget. The `Scale` exposes the following child options:

* [Min and Max](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#min-and-max)

* [MinorUnit and MajorUnit](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#minorunit-and-majorunit)

* [Mirror](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#mirror)

* [Reverse](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#reverse)

* [Vertical](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#vertical)

## Min and Max

* The `Min` (`double`) sets the lowest value of the widget.

* The `Max` (`double`) sets the maximum value of the widget.

```Razor HtmlHelper
    @(Html.Kendo().LinearGauge()
          .Name("gauge")
          .Scale(scale => scale
              .Min(10)
              .Max(180)
          )
    )
```

## MinorUnit and MajorUnit

* The `MajorUnit` (`double`) parameter controls the interval between the major unit divisions of the widget. The values provided to the linear gauge's `Pointer` will render as a `MajorUnit` tick. The labels will be rendered next to the `MajorUnit` ticks.

* The `MinorUnit` (`double`) parameter controls the interval between the minor unit divisions of the widget.

```Razor HtmlHelper
    @(Html.Kendo().LinearGauge()
          .Name("gauge")
          .Scale(scale => scale
              .MajorUnit(20)
              .MinorUnit(5)
          )
    )
```

## Mirror

By design, the labels and unit devisions of the `Scale` are rendered to the left, or, to the top if the gauge is [horizontal](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/scale#reverse). If you set the `Mirror` (`bool`) to `true`, the `Scale` will render the labels and unit devisions to the right or to the bottom, respectively.

```Razor HtmlHelper
    @(Html.Kendo().LinearGauge()
          .Name("gauge")
          .Scale(scale => scale
            .Mirror(true)
          )
    )
```

## Reverse

If you set the `Reverse` (`bool`) option to `true`, the values of the scale will increase from top to bottom. By default they will raise from the bottom to the top.

```Razor HtmlHelper
    @(Html.Kendo().LinearGauge()
          .Name("gauge")
          .Scale(scale => scale
            .Reverse(true)
          )
    )
```

## Vertical

By design, the default orientation of the widget is vertical. Setting the `Vertical` (`bool`) option to `false` would render the widget horizontally.

```Razor HtmlHelper
    @(Html.Kendo().LinearGauge()
          .Name("gauge")
          .Scale(scale => scale
            .Vertical(false)
          )
    )
```

## See Also

* [Overview of the LinearGauge](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/overview)
* [Pointers of the LinearGauge](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/gauges/lineargauge/pointers)
