Files
grafana/devenv/dev-dashboards/panel-trend/trend_example.json
2025-08-29 00:02:49 -05:00

216 lines
5.2 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 21370,
"links": [],
"panels": [
{
"datasource": {
"type": "grafana-testdata-datasource"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "series",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showValues": true,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Power (kW)"
},
"properties": [
{
"id": "custom.axisLabel",
"value": "Power (kW)"
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "custom.axisSoftMin",
"value": 20
},
{
"id": "custom.axisSoftMax",
"value": 120
}
]
},
{
"matcher": {
"id": "byName",
"options": "Speed (RPM)"
},
"properties": [
{
"id": "custom.axisLabel",
"value": "Speed (RPM)"
},
{
"id": "custom.axisSoftMin",
"value": 600
},
{
"id": "custom.axisSoftMax",
"value": 6800
}
]
},
{
"matcher": {
"id": "byName",
"options": "Torque (NM)"
},
"properties": [
{
"id": "custom.axisLabel",
"value": "Torque (NM)"
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "custom.axisSoftMin",
"value": 80
},
{
"id": "custom.axisSoftMax",
"value": 280
}
]
}
]
},
"gridPos": {
"h": 18,
"w": 11,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
},
"xField": "Speed (RPM)"
},
"pluginVersion": "12.2.0-pre",
"targets": [
{
"csvContent": "Speed (RPM),Torque (NM),Power (kW)\n800,180,20\n1500,215,40\n2000,227,50\n2500,230,62\n3000,233,75\n3500,236,86\n4000,234,92\n4500,230,100\n5000,220,107\n5500,210,110\n6000,178,106\n6500,120,92",
"datasource": {
"type": "grafana-testdata-datasource"
},
"refId": "A",
"scenarioId": "csv_content"
}
],
"title": "Engine Power and Torque Curves",
"type": "trend"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 41,
"tags": ["gdev", "panel-tests", "graph-ng", "trend"],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Panel Tests - Trend",
"uid": "b36b5576-2e3d-4b0c-8dce-e79514d99345",
"version": 16
}