scale

Specifies the gauge's scale options.

Type:

Object

To divide a scale, set its startValue and endValue properties. The scale's major and minor ticks will be calculated automatically, so that the tick labels do not overlap each other. Major ticks will be shown by default. To show minor ticks, set their visible property to true. You can set custom major and minor tick intervals, show custom major and minor ticks, and format tick labels. These and other scale options are available in the scale configuration object.

endValue

Specifies the end value for the scale of the gauge.

Type:

Number

Default Value: 100
Cannot be used in themes.

hideFirstLabel

Specifies whether or not to hide the first scale label.

Type:

Boolean

Default Value: false

hideFirstTick

Specifies whether or not to hide the first major tick on the scale.

Type:

Boolean

Default Value: false

hideLastLabel

Specifies whether or not to hide the last scale label.

Type:

Boolean

Default Value: false

hideLastTick

Specifies whether or not to hide the last major tick on the scale.

Type:

Boolean

Default Value: false

horizontalOrientation

Specifies the orientation of scale ticks on a vertically oriented dxLinearGauge widget.

Type:

String

Default Value: 'right'
Accepted Values: 'left' | 'center' | 'right'

This option specifies the orientation of scale ticks relative to an invisible scale line.

NOTE
The horizontalOrientation option requires the gauge to be vertical. Assign "vertical" to the geometry | orientation option to display the gauge vertically.

label

Specifies common options for scale labels.

Type:

Object

Scale labels represent textual values for major scale ticks. The label object exposes properties that allow you to specify custom text for scale labels and properties to change the text font.

majorTick

Specifies options of the gauge's major ticks.

Type:

Object

Major ticks are calculated automatically based on the scale's startValue and endValue property values. They are visible by default. You can set a custom major tick interval or add custom major ticks using the tickInterval and customTickValues properties respectively. To specify the visibility of major ticks, use the visible and showCalculatedTicks properties. You can also specify the length, width and color of the major ticks using corresponding properties.

minorTick

Specifies options of the gauge's minor ticks.

Type:

Object

Major and minor ticks are calculated automatically based on the scale's startValue and endValue property values. Major ticks are made visible by default. You can make minor tick visible as well, using their visible property. In addition, you can set a custom minor tick interval or add custom minor ticks using the tickInterval and customTickValues properties respectively. You can also specify the length, width and color of the minor ticks using corresponding properties.

View Demo

startValue

Specifies the start value for the scale of the gauge.

Type:

Number

Default Value: 0
Cannot be used in themes.

verticalOrientation

Specifies the orientation of scale ticks on a horizontally oriented dxLinearGauge widget.

Type:

String

Default Value: 'bottom'
Accepted Values: 'top' | 'middle' | 'bottom'

This option specifies the orientation of scale ticks relative to an invisible scale line.

NOTE
The verticalOrientation option requires the gauge to be horizontal. Assign "horizontal" to the geometry | orientation option to display the gauge horizontally.