Gauge

(part of package 'Servoy Extra Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

This is a reference page; many components have detailed usage guides here.

Properties

animationOptions

Type: CustomType<servoyextra-gauge.AnimationOptions>


borderOptions

Type: CustomType<servoyextra-gauge.BorderOptions>


colorOptions

Type: CustomType<servoyextra-gauge.ColorOptions>


fontOptions

Type: CustomType<servoyextra-gauge.FontOptions>


gaugeType

The type of gauge to display. A linear gauge is similar to a thermometer and a radial gauge is like a speedometer

Type: String Default Value: "radial"


highlights

Type: Array<CustomType<servoyextra-gauge.Highlight>>


linearGaugeOptions

Type: CustomType<servoyextra-gauge.LinearGaugeOptions>


maxValue

The maximum value for the gauge

Type: Number Default Value: 100


minValue

The minimum value for the gauge

Type: Number Default Value: 0


needleOptions

Type: CustomType<servoyextra-gauge.NeedleOptions>


radialGaugeOptions

Type: CustomType<servoyextra-gauge.RadialGaugeOptions>


ticks

Type: CustomType<servoyextra-gauge.TickOptions>


title

Type: CustomType<servoyextra-gauge.TitleOptions>


units

Type: String


value

Type: Dataprovider


valueBoxOptions

Type: CustomType<servoyextra-gauge.ValueBoxOptions>


Types

AnimationOptions

scripting type: CustomType<servoyextra-gauge.AnimationOptions>

  • animateOnInit

    • Flag to indicate if the guage should be animated on first draw

    • Type: boolean

    • Default Value: true

  • animatedValue

    • Flag to indicate if the value should be constantly updated during the animation

    • Type: boolean

    • Default Value: false

  • animation

    • Flag to indicate if animations are enabled

    • Type: boolean

    • Default Value: true

  • animationDuration

    • Time in milliseconds of the animation duration

    • Type: int

    • Default Value: 500

  • animationRule

    • The type of animation behaviour for the guage

    • Type: string

    • Default Value: "linear"

BorderOptions

scripting type: CustomType<servoyextra-gauge.BorderOptions>

  • borderInnerWidth

    • Sets the inner width of the border in pixels. If 0, then no border will be drawn

    • Type: int

  • borderMiddleWidth

    • Sets the middle width of the border in pixels. If 0, then no border will be drawn

    • Type: int

  • borderOuterWidth

    • Sets the outer width of the border in pixels. If 0, then no border will be drawn

    • Type: int

  • borderShadowWidth

    • Sets the width of the outer border drop shadow. If 0, then no shadow will be drawn

    • Type: int

  • borders

    • Flag to indicate if borders should be drawn

    • Type: boolean

    • Default Value: true

ColorOptions

scripting type: CustomType<servoyextra-gauge.ColorOptions>

  • colorBar

    • Defines the background color of the bar

    • Type: color

  • colorBarProgress

    • Defines the color of the progress bar

    • Type: color

  • colorBarStroke

    • Defines the color of the bar stroke

    • Type: color

  • colorBorderInner

    • Defines the color of the inner border for the gauge plate

    • Type: color

  • colorBorderInnerEnd

    • This value and the main border outer colour can be used to specify a gradient for the inner border

    • Type: color

  • colorBorderMiddle

    • Defines the color of the middle border for the gauge plate

    • Type: color

  • colorBorderMiddleEnd

    • This value and the main border middle colour can be used to specify a gradient for the middle border

    • Type: color

  • colorBorderOuter

    • Defines the color of the outer border for the gauge plate

    • Type: color

  • colorBorderOuterEnd

    • This value and the main border outer colour can be used to specify a gradient for the outer border

    • Type: color

  • colorMajorTicks

    • Color of the major tick marks

    • Type: color

    • Default Value: "#444"

  • colorMinorTicks

    • Color of the minor tick marks

    • Type: color

    • Default Value: "#666"

  • colorNeedle

    • Color of the needle

    • Type: color

    • Default Value: "rgba(240,128,128,1)"

  • colorNeedleEnd

    • This value and the main needle colour can be used to specify a gradient for the needle

    • Type: color

    • Default Value: "rgba(255,160,122,.9)"

  • colorNeedleShadowDown

    • Defines the lower half of the needle shadow color

    • Type: color

  • colorNeedleShadowUp

    • Defines the upper half of the needle shadow color

    • Type: color

  • colorNumbers

    • Color of the numbers on the ticks

    • Type: color

    • Default Value: "#444"

  • colorPlate

    • The background color for the gauge