Skip to main content
Version: 8.1

Perspective - Cylindrical Tank

Component Palette Icon:

Description​

A component that looks like a 3D cylindrical tank with some liquid inside. Component can be configured so that the "liquid" rises and falls as the 'value' property changes. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.

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.

NameDescriptionProperty Type
valueNumeric value of the tank's level.value: numeric
capacityTotal capacity of the tank. Default is 100.value: numeric
liquidColorColor used to render the filled part of the tank. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector.color
tankColorColor of the non-filled tank section. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector.color
liquidOpacityThe opacity of the liquid in the tank. 0 is fully transparent, 1 is fully opaque. Default is 0.5.value: numeric
liquidWarningColorThe warning color of the liquid in the tank. See Color Selector.color
tankWarningColorThe tank warning color. See Color Selector.color
warningThresholdThe warning appearance will be used when value as a percentage of the capacity exceeds this value. Default is 100value: numeric
strokeWidthThe stroke width, in pixels, for the outside of the tank. Default is 1.value: numeric
valueDisplayValue display configuration. Renders and styles a value overlay in the tank. Click here to see valueDisplay properties.object
styleSets a style for this cylindrical tank. 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

valueDisplay Properties​

NameDescriptionProperty Type
enabledWhether valueDisplay is shown. Default is true.value: boolean
styleModify the valueDisplay style using the style properties. 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
format
New in 8.1.24
Format to apply to value which is then used as the display value. Available options include:
  • None
  • Integer
  • Percent
  • Currency
  • value: string
    unit
    New in 8.1.24
    Unit value to display on value overlay:
  • enabled: If true, will show either a prefixed or postfixed unit. Value is boolean.
  • value: Unit value to display. Value is string.
  • fix: Direction in which to place the unit. Either as a prefix or a postfix. Value is string.
  •  
    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​

    PropertyValue
    props.value85
    props.capacity100
    props.warningThreshold80