GaugeLinearScaleLabelsBuilder

Methods

Font(System.String)

Sets the labels font

Parameters

font - System.String

The labels font (CSS format).

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Font("14px Arial,Helvetica,sans-serif")
                           )
                       )
            )
             

Visible(System.Boolean)

Sets the labels visibility

Parameters

visible - System.Boolean

The labels visibility.

Example

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

Background(System.String)

Sets the labels background color

Parameters

background - System.String

The labels background color.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Background("Red")
                           )
                       )
            )
             

Color(System.String)

Sets the labels text color

Parameters

color - System.String

The labels text color.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Color("Red")
                           )
                       )
            )
             

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

Sets the labels margin

Parameters

top - System.Int32

The labels top margin.

right - System.Int32

The labels right margin.

bottom - System.Int32

The labels bottom margin.

left - System.Int32

The labels left margin.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Margin(0, 5, 5, 0)
                           )
                       )
            )els
             

Margin(System.Int32)

Sets the labels margin

Parameters

margin - System.Int32

The labels margin.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Margin(20)
                           )
                       )
            )
             

Padding(System.Int32,System.Int32,System.Int32,System.Int32)

Sets the labels padding

Parameters

top - System.Int32

The labels top padding.

right - System.Int32

The labels right padding.

bottom - System.Int32

The labels bottom padding.

left - System.Int32

The labels left padding.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Padding(0, 5, 5, 0)
                           )
                       )
            )
             

Padding(System.Int32)

Sets the labels padding

Parameters

padding - System.Int32

The labels padding.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Padding(20)
                           )
                       )
            )
             

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

Sets the labels border

Parameters

width - System.Int32

The labels border width.

color - System.String

The labels border color (CSS syntax).

dashType - ChartDashType

The labels border dash type.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Border(1, "Red", ChartDashType.Dot)
                           )
                       )
            )
             

Border(System.Action)

Configures the label border

Parameters

configurator - System.Action<ChartBorderBuilder>

The border configuration action

Format(System.String)

Sets the labels format.

Parameters

format - System.String

The labels format.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Format("{0:C}")
                           )
                       )
            )
             

Template(System.String)

Sets the labels template.

Parameters

template - System.String

The labels template.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Template("#= value #")
                           )
                       )
            )
             

Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Sets the labels template.

Parameters

template - TemplateBuilder<Object>

The labels template.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Template(Html.Kendo().Template()
                                        .AddHtml("{data.value}%")
                                )
                           )
                       )
            )
             

TemplateView(System.Web.HtmlString)

Sets the labels template.

Parameters

templateView - System.Web.HtmlString

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .TemplateView(Html.Partial("myPartial"))
                           )
                       )
            )
             

TemplateHandler(System.String)

Sets the labels template.

Parameters

handler - System.String

The labels template.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .TemplateHandler("labelsHandler")
                           )
                       )
            )
             

Opacity(System.Double)

Sets the labels opacity.

Parameters

opacity - System.Double

The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.

Example

Razor
 
            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Labels(labels => labels
                               .Opacity(0.5)
                           )
                       )
            )