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

Kendo UI CircularGauge component

Definition

Constructors

Initializes a new instance of the CircularGauge class.

C#
public CircularGauge(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

The label template. Template variables: * value - the value

C#
public string CenterTemplate { get; set; }

The handler for the CenterTemplate

C#
public string CenterTemplateHandler { get; set; }

The id for the CenterTemplate

C#
public string CenterTemplateId { get; set; }

The color of the value pointer. Accepts a valid CSS color string, including hex and rgb.

C#
public string Color { get; set; }

The color ranges of the value pointer. The pointer color will be set to the color from the range that contains the current value.

C#
public List<CircularGaugeColor> Colors { get; set; }

The gauge area configuration options. This is the entire visible area of the gauge.

C#
public CircularGaugeGaugeAreaSettings GaugeArea { get; set; }

The opacity of the value pointer.

C#
public double? Opacity { get; set; }

Sets the preferred rendering engine. If it is not supported by the browser, the Gauge will switch to the first available mode.The supported values are: "svg" - renders the widget as inline SVG document, if available or "canvas" - renders the widget as a Canvas element, if available..

C#
public string RenderAs { get; set; }

Configures the scale.

C#
public CircularGaugeScaleSettings Scale { get; set; }

The gauge theme. With versions prior to R1 2023 this can be either the respective LESS theme from the list below or "sass". When set to "sass" the gauge will read the variables from the Sass-based themes.

C#
public string Theme { get; set; }

A value indicating if transition animations should be played.

C#
public bool? Transitions { get; set; }

The gauge value.

C#
public double? Value { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)