Skip to main content

Configuring Gauge Panels

1. Setting Min and Max Values

Property Values Description
min 0 Minimum value for the gauge scale
max 100 Maximum value for the gauge scale

Example: Setting Min and Max Values

{
  "min": 0,
  "max": 100
}

2. Configuring Gauge Orientation

Property Values Description
orientation "horizontal", "vertical" Orientation of the gauge

Example: Setting Gauge Orientation

{
  "orientation": "horizontal"
}

3. Setting Show Threshold Labels

Property Values Description
showThresholdLabels true, false Whether to show threshold labels on the gauge

Example: Enabling Threshold Labels

{
  "showThresholdLabels": true
}

4. Configuring Show Threshold Markers

Property Values Description
showThresholdMarkers true, false Whether to show threshold markers on the gauge

Example: Enabling Threshold Markers

{
  "showThresholdMarkers": true
}

5. Using Value Mappings

Property Values Description
valueMappings Array of value mapping objects Mappings to transform numeric values into labels or colors

Example: Value Mappings Configuration

{
  "valueMappings": [
    {
      "from": "0",
      "to": "50",
      "text": "Low"
    },
    {
      "from": "51",
      "to": "100",
      "text": "High"
    }
  ]
}

6. Setting Threshold Colors

Property Values Description
thresholds Array of threshold objects Thresholds with associated colors and values

Example: Threshold Colors Configuration

{
  "thresholds": [
    {
      "value": 50,
      "color": "#f2c94c"
    },
    {
      "value": 80,
      "color": "#e06b7d"
    }
  ]
}

7. Configuring Unit Format

Property Values Description
unit String unit identifier Unit format for the gauge value (e.g., "percent", "bytes")

Example: Unit Format Configuration

{
  "unit": "percent"
}

8. Setting Decimal Precision

Property Values Description
decimals Number (0-10) Number of decimal places to display

Example: Decimal Precision Configuration

{
  "decimals": 2
}

9. Using Text Mode

Property Values Description
textMode "auto", "value", "name" Mode for displaying text on the gauge

Example: Text Mode Configuration

{
  "textMode": "value"
}

10. Configuring Gauge Size

Property Values Description
gaugeSize "small", "medium", "large" Size of the gauge display

Example: Gauge Size Configuration

{
  "gaugeSize": "medium"
}

Was this article helpful?