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

RadialGaugeGaugeAreaSettingsBuilder

Methods

Margin(System.Int32,System.Int32,System.Int32,System.Int32)

Sets the gauge area margin.

Parameters

top - System.Int32

The gauge area top margin.

right - System.Int32

The gauge area right margin.

bottom - System.Int32

The gauge area bottom margin.

left - System.Int32

The gauge area left margin.

Example


            @(Html.Kendo().RadialGauge()
                .Name("gauge")
                .GaugeArea(gaugeArea => gaugeArea.Margin(0, 5, 5, 0))
                .Pointers(pointer =>
                {
                    pointer.Add().Value(20);
                })
            )

Margin(System.Int32)

Sets the gauge area margin.

Parameters

margin - System.Int32

The gauge area margin.

Example


            @(Html.Kendo().RadialGauge()
                .Name("gauge")
                .GaugeArea(gaugeArea => gaugeArea.Margin(5))
                .Pointers(pointer =>
                {
                    pointer.Add().Value(20);
                })
            )

Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)

Sets the gauge area border.

Parameters

width - System.Int32

The border width.

color - System.String

The border color (CSS syntax).

dashType - ChartDashType

The border dash type.

Example


            @(Html.Kendo().RadialGauge()
                .Name("gauge")
                .GaugeArea(gaugeArea => gaugeArea.Border(1, "red", ChartDashType.Dot))
                .Pointers(pointer =>
                {
                    pointer.Add().Value(20);
                })
            )

Border(System.Action)

The border of the gauge area.

Parameters

configurator - System.Action<RadialGaugeGaugeAreaBorderSettingsBuilder>

The configurator for the border setting.

Height(System.Double)

The height of the gauge area. By default, the vertical gauge is 200px and the horizontal one is 60px.

Parameters

value - System.Double

The value for Height

Margin(System.Action)

The margin of the gauge area.

Parameters

configurator - System.Action<RadialGaugeGaugeAreaMarginSettingsBuilder>

The configurator for the margin setting.

Width(System.Double)

The width of the gauge area. By default the vertical gauge is 60px and horizontal gauge is 200px.

Parameters

value - System.Double

The value for Width

Background(System.String)

The background of the gauge area. Any valid CSS color string will work here, including hex and rgb.

Parameters

value - System.String

The value for Background

In this article
Not finding the help you need?