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.

RETURNS

Returns the current instance of RadialGaugeGaugeAreaSettingsBuilder.

Example

Razor
 
            @(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.

RETURNS

Returns the current instance of RadialGaugeGaugeAreaSettingsBuilder.

Example

Razor
 
            @(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.

RETURNS

Returns the current instance of RadialGaugeGaugeAreaSettingsBuilder.

Example

Razor
 
            @(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.

RETURNS

Returns the current instance of RadialGaugeGaugeAreaSettingsBuilder .

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

RETURNS

Returns the current RadialGaugeGaugeAreaSettingsBuilder instance.

Margin(System.Action)

The margin of the gauge area.

Parameters

configurator - System.Action<RadialGaugeGaugeAreaMarginSettingsBuilder>

The configurator for the margin setting.

RETURNS

Returns the current instance of RadialGaugeGaugeAreaSettingsBuilder .

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

RETURNS

Returns the current RadialGaugeGaugeAreaSettingsBuilder instance.

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

RETURNS

Returns the current RadialGaugeGaugeAreaSettingsBuilder instance.