New to Kendo UI for Vue? Start a free 30-day trial

LinearGauge

Component

Definition

Package:@progress/kendo-vue-gauges

Properties Interface:LinearGaugeProps

Syntax:

vue
<LinearGauge :pointer="{ value: 40 }" />

Properties

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

colors?

any[]

Sets the color ranges of the value pointer.

dir?

string

Sets the dir HTML attribute of the Gauge.

Example:
vue
<RadialGauge :pointer="{ value: 40 }" :dir="'rtl'" />

onRender?

(event: any) => void

Fires when the Gauge renders.

Parameters:eventany

Sets the opacity of the value pointer.

Sets the configuration of the pointers (see example).

Example:
vue
<LinearGauge :pointer="{ value: 40, color: '#28b4c8' }" />

renderAs?

string

Sets the preferred rendering engine. If the browser does not support it, the Gauge switches to the first available mode.

The supported values are:

  • "svg"—If available, renders the component as an inline .svg file.
  • "canvas"—If available, renders the component as a canvas element.
Default:

'svg'

Example:
vue
<RadialGauge :pointer="{ value: 40 }" :render-as="'canvas'" />

Sets the configuration of the scale.

Example:
vue
<LinearGauge :pointer="{ value: 40 }" :scale="{ min: 0, max: 100, vertical: false }" />

When set to true, the Gauge plays animations when it shows the series. By default, the Gauge plays animations.

Example:
vue
<RadialGauge :pointer="{ value: 40 }" :transitions="false" />

value?

number

Sets the value of the Gauge.