Skip to main content

kendoLinearGauge

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The LinearGauge represents values on a linear scale.

public class kendoLinearGauge : kendoBase

Constructors​

Instance member kendoLinearGauge()​

Constructs a new instance of the kendoLinearGauge class.

Example:

The following example creates a horizontal linear gauge and configures it through the Options property.

var gauge = new kendoLinearGauge();
gauge.Options.pointer = new { value = 28 };
gauge.Options.scale = new { min = 0, max = 50, vertical = false };
gauge.Size = new Size(400, 80);
this.Controls.Add(gauge);

Instance member kendoLinearGauge(options)​

Constructs a new instance of the kendoLinearGauge class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a vertical linear gauge with an arrow pointer and a highlighted range.

var gauge = new kendoLinearGauge(new
{
pointer = new { value = 72, shape = "arrow" },
scale = new
{
min = 0,
max = 100,
majorUnit = 20,
ranges = new[] { new { from = 80, to = 100, color = "#c20000" } }
}
});
gauge.Size = new Size(100, 300);
this.Controls.Add(gauge);

Implements​