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

GaugeAreaBuilder

Methods

Background(System.String)

Sets the chart area background color.

Parameters

background - System.String

The background color.

Example


            @( Html.Kendo().LinearGauge()
                      .Name("linearGauge")
                      .GaugeArea(gaugeArea => gaugeArea.Background("red"))
                      .Render();
            )

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().LinearGauge()
                      .Name("linearGauge")
                      .GaugeArea(gaugeArea => gaugeArea.Margin(0, 5, 5, 0))
                      .Render();
            )

Margin(System.Int32)

Sets the gauge area margin.

Parameters

margin - System.Int32

The gauge area margin.

Example


            @( Html.Kendo().LinearGauge()
                      .Name("linearGauge")
                      .GaugeArea(gaugeArea => gaugeArea.Margin(5))
                      .Render();
            )

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().LinearGauge()
                      .Name("linearGauge")
                      .GaugeArea(gaugeArea => gaugeArea.Border(1, "#000", ChartDashType.Dot))
                      .Render();
            )

Border(System.Action)

Configures the gauge area border

Parameters

configurator - System.Action<ChartBorderBuilder>

The border configuration action

In this article
Not finding the help you need?