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 |
2. Configuring Gauge Orientation
| Property | Values | Description |
|---|---|---|
| orientation | "horizontal", "vertical" |
Orientation of the gauge |
3. Setting Show Threshold Labels
| Property | Values | Description |
|---|---|---|
| showThresholdLabels | true, false |
Whether to show threshold labels on the gauge |
4. Configuring Show Threshold Markers
| Property | Values | Description |
|---|---|---|
| showThresholdMarkers | true, false |
Whether to show threshold markers on the gauge |
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") |
8. Setting Decimal Precision
| Property | Values | Description |
|---|---|---|
| decimals | Number (0-10) | Number of decimal places to display |
9. Using Text Mode
| Property | Values | Description |
|---|---|---|
| textMode | "auto", "value", "name" |
Mode for displaying text on the gauge |
10. Configuring Gauge Size
| Property | Values | Description |
|---|---|---|
| gaugeSize | "small", "medium", "large" |
Size of the gauge display |