New to Telerik UI for ASP.NET Core? Download free 30-day trial

GaugeLinearScaleBuilder

Properties

linearGauge - LinearGauge

Configuration for the default scale (if any)

Scale - ILinearScale

The scale mirror.

Methods

Mirror(System.Boolean)

Sets the mirror of the gauge

Parameters

mirror - System.Boolean

The mirror.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("LinearGauge")
                       .Scale(scale => scale
                           .Mirror(true)
                       )
            )

Vertical(System.Boolean)

Sets the orientation of the gauge

Parameters

vertical - System.Boolean

The vertical.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("LinearGauge")
                       .Scale(scale => scale
                           .Vertical(false)
                       )
            )

Labels(System.Action)

Configures the labels.

Parameters

configurator - System.Action<GaugeLinearScaleLabelsBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Visible(false)
                           )
                       )
            )

RangeSize(System.Double)

Parameters

value - System.Double

MinorTicks(System.Action)

Configures the minor ticks.

Parameters

configurator - System.Action<GaugeScaleTicksBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .MinorTicks(ticks => ticks
                               .Visible(false)
                           )
                       )
            )

MajorTicks(System.Action)

Configures the major ticks.

Parameters

configurator - System.Action<GaugeScaleTicksBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .MajorTicks(ticks => ticks
                               .Visible(false)
                           )
                       )
            )

Ranges(System.Action)

Defines the ranges items.

Parameters

configurator - System.Action<GaugeScaleRangesFactory>

The add action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                            .Ranges.Add()
                            .From(1)
                            .To(2)
                       )
            )

MajorUnit(System.Double)

Sets the scale major unit.

Parameters

majorUnit - System.Double

The major unit.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.MajorUnit(5))
            )

MinorUnit(System.Double)

Sets the scale minor unit.

Parameters

minorUnit - System.Double

The minor unit.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.MinorUnit(5))
            )

Min(System.Double)

Sets the scale min value.

Parameters

min - System.Double

The min.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.Min(-20))
            )

Max(System.Double)

Sets the scale max value.

Parameters

max - System.Double

The max.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.Max(20))
            )

Reverse(System.Boolean)

Sets the scale reverse.

Parameters

reverse - System.Boolean

The scale reverse.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.reverse(true))
            )

Line(System.Action)

Configures the major ticks.

Parameters

configurator - System.Action<GaugeLineBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Line(line => line
                               .Visible(false)
                           )
                       )
            )

In this article
Not finding the help you need?