Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Component Palette Icon:

On_this_page



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.

New_in
Version8.1.2


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

Perspective_property


NameDescriptionProperty Type
valueNumeric value for the gauge to display. Default is 0.value: numeric
minValueMinimum gauge value for this gauge. Default is 0.value: numeric
maxValueMaximum gauge value for this gauge. Default is 100.value: numeric
startAngleRadial position for the start of the gauge's arc. Default is 180.value: numeric
endAngleRadial 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.

Expand
titleClick here to see the arc properties
NameDescriptionProperty Type
widthWidth of the line (in pixels) that represents the arc. Default is 20.value: numeric
colorColor of the arc line showing the gauge's value. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector.color
cornerRadiusAmount to round the edges of the arc. Default is 0.value: numeric
object
arcBackground

Background or 'track' for the gauge arc. Shows shape and total potential value behind the arc.

Expand
titleClick here to see the arcBackground properties
NameDescriptionProperty Type
colorColor of the arc background. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value.color
opacityOpacity of the arc. 0 is fully transparent, 1 is fully opaque.

value:
numeric

value: numeric
label

The label for the gauge is displayed as text, with optional units.

Expand
titleClick here to see the label properties
NameDescriptionProperty Type
visibleIndicates whether or not the label is visible. Default is true (visible).value: boolean
size

Font size to display label text. Default is 25. 

value: numeric
offsetXOffset position on the x axis, relative to the middle of the gauge.value: numeric
offsetYOffset position on the y axis, relative to the middle of the gauge.value: numeric
colorColor of the label.color
unitsAny unit information to append to the value on the label.value: string
maxDecimalMaximum number of digits after decimal to display in the label. If null, full value will display.value: numeric
object
animateWhether needle should be animated in a sweeping motion when value changes. Default is false.value: boolean
styleSets 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

Perspective_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

Panel
titleExample

Image Modified

PropertyValue
Value32.4567
props.arc.width15
props.arc.cornerRadius25
props.arc.color#FF8C00
props.arcBackground.opacity0.4
props.label.unitspsi
props.label.maxDecimal1