Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [CSPX] >  [Dashboard] >  [TrafficLight]
Private  Storage   

class CSPX.Dashboard.TrafficLight extends Meter

SVG-based Traffic Light meter for Dashboard.
Light logic depends on the relative values of RangeLower and RangeUpper and works as follows:
If RangeLower is less than (or equal to) RangeUpper, then the light is green when the level is less than (or equal to) ThresholdLower and the light is red when the level is greater than (or equal to) ThresholdUpper otherwise the light is yellow.
If RangeLower is greater then RangeUpper, then the light is red when the level is less than (or equal to) ThresholdLower and the light is green when the level is greater than (or equal to) ThresholdUpper otherwise the light is yellow.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 4


Summary

Properties
DefList Description Height IsRunning Label
Level Link MeterId Method Metric
Property PropertyCount RangeLower RangeUpper ScaleFactor
ShowLabel ThresholdLower ThresholdUpper Width XPos
YPos

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
GenerateCode GetDefault GetUnits HeightSet
OnSVGBody OnSVGDefs OnSVGHead OnSVGInitJS
OnSVGScript OnSVGStyle SetClientProperties WidthSet
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType


Parameters

• parameter MINWIDTH = 50;
Minimum width, in logical units, of this meter.
• parameter WIDTH = 50;
Default width, in logical units, of this meter.

Methods

• method OnSVGBody()
Draw the body of this SVG meter
• classmethod OnSVGDefs()
Draw the defs section of this SVG meter
• classmethod OnSVGScript()
Draw the script section of this SVG meter
• classmethod OnSVGStyle()
Draw the style section of this SVG meter


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.