Configuring Stat Panels
1. Setting Value Options
| Option | Values | Description |
|---|---|---|
| value | current, min, max, avg, total |
Which value to display in the panel |
| displayMode | basic, lcd, gradient |
How to display the value |
2. Configuring Color Mode
| Option | Values | Description |
|---|---|---|
| colorMode | none, value, background |
How to apply color to the value |
| thresholds | Array of threshold objects | Color thresholds for value-based coloring |
Example: Value-Based Coloring
{
"colorMode": "value",
"thresholds": [
{
"value": 0,
"color": "green"
},
{
"value": 50,
"color": "yellow"
}
]
}
3. Setting Thresholds
| Threshold | Color | Description |
|---|---|---|
| value | 0 |
Threshold value to trigger color change |
| color | red |
Color to apply when value exceeds threshold |
Example: Threshold Configuration
[
{
"value": 0,
"color": "red"
},
{
"value": 50,
"color": "yellow"
}
]
4. Using Value Mappings
| Type | Mapping | Description |
|---|---|---|
| type | value, range |
Mapping type to apply |
| options | Object with value and text | Value to text mapping configuration |
Example: Value Mapping
{
"type": "value",
"options": {
"0": {
"text": "Offline"
},
"1": {
"text": "Online"
}
}
}
5. Configuring Unit Format
| Unit | Format | Description |
|---|---|---|
| unit | short, bytes, percent |
Unit type to display |
| decimals | 0, 2 |
Number of decimal places to show |
6. Setting Decimal Precision
| Property | Value | Description |
|---|---|---|
| decimals | 0, 2, 5 |
Number of decimal places to display |
| min | 0.1 |
Minimum value to show |
7. Using Graph Mode
| Mode | Values | Description |
|---|---|---|
| graphMode | none, area, line |
Graph visualization mode |
| fillOpacity | 0.5 |
Opacity of graph fill area |
8. Setting Text Mode
| Mode | Values | Description |
|---|---|---|
| textMode | auto, value, name |
Text to display in panel |
| textSize | small, medium, large |
Size of the displayed text |
9. Configuring Text Size
| Property | Value | Description |
|---|---|---|
| textSize | small, medium, large |
Size of the displayed text |
| textColor | #ffffff |
Color of the displayed text |
10. Using Color by Field
| Field | Color | Description |
|---|---|---|
| colorByField | field1, field2 |
Field to use for color assignment |
| colorPalette | default, custom |
Color palette to apply |