Perspective - Simple Gauge
Component Palette Icon:
The Simple Gauge component in Perspective provides a way to show realtime values in a range as they change. This gauge is a less complicated version of the Gauge component. It has just one axis, is easy to configure and is customizable in its appearance.
The Simple Gauge component has three pre-configured variants:
- Half Circle - Default layout with a half-circle gauge.
- 3/4 Circle - Layout with a 3/4 circle gauge.
- Full Axis - Layout with a full axis gauge.
Properties​
Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.
Name | Description | Propterty Type |
---|---|---|
value | Numeric value for the gauge to display. Default is 0. | value: numeric |
minValue | Minimum gauge value for this gauge. Default is 0. | value: numeric |
maxValue | Maximum gauge value for this gauge. Default is 100. | value: numeric |
startAngle | Radial position for the start of the gauge's arc. Default is 180. | value: numeric |
endAngle | Radial position for the end of the gauge's arc. Default is 360. | value: numeric |
arc | The arc is a radial band that displays the gauge's value. | object |
arcBackground | Background or 'track' for the gauge arc. Shows shape and total potential value behind the arc. | value: numeric |
label | The label for the gauge is displayed as text, with optional units. | object |
animate | Whether needle should be animated in a sweeping motion when value changes. Default is false. | value: boolean |
style | Sets a style for this gauge. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class. | object |
Component Events​
The Perspective Event Types Reference page describes all the possible component event types for Perspective components. Not all component events support each Perspective component. The Component Events and Actions page shows how to configure events and actions on a Perspective component. Component scripting is handled separately and can be accessed from the Component menubar or by right clicking on the component.
Example​
Property | Value |
---|---|
Value | 32.4567 |
props.arc.width | 15 |
props.arc.cornerRadius | 25 |
props.arc.color | #FF8C00 |
props.arcBackground.opacity | 0.4 |
props.label.units | psi |
props.label.maxDecimal | 1 |