Grafana nuage : mapping manuel, quatre series sur une trame

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011uJ47NxgfpGnuuMr3f2n7Z
This commit is contained in:
Tallagrand Thierry
2026-09-28 23:44:31 +02:00
parent e18158bfd1
commit a9fd3a77ba
2 changed files with 89 additions and 3 deletions

View File

@@ -760,9 +760,88 @@
]
},
"options": {
"mapping": "auto",
"mapping": "manual",
"series": [
{}
{
"frame": {
"matcher": {
"id": "byIndex",
"options": 0
}
},
"x": {
"matcher": {
"id": "byName",
"options": "Soiree"
}
},
"y": {
"matcher": {
"id": "byName",
"options": "Nuit sans voiture"
}
}
},
{
"frame": {
"matcher": {
"id": "byIndex",
"options": 0
}
},
"x": {
"matcher": {
"id": "byName",
"options": "Soiree"
}
},
"y": {
"matcher": {
"id": "byName",
"options": "Nuit avec voiture"
}
}
},
{
"frame": {
"matcher": {
"id": "byIndex",
"options": 0
}
},
"x": {
"matcher": {
"id": "byName",
"options": "Soiree"
}
},
"y": {
"matcher": {
"id": "byName",
"options": "Regression"
}
}
},
{
"frame": {
"matcher": {
"id": "byIndex",
"options": 0
}
},
"x": {
"matcher": {
"id": "byName",
"options": "Soiree"
}
},
"y": {
"matcher": {
"id": "byName",
"options": "Ce soir (prevu)"
}
}
}
],
"legend": {
"showLegend": true,

View File

@@ -276,7 +276,14 @@ NUIT_XY = {"type": "xychart", "title": "Soiree contre nuit : le nuage des nuits"
{"matcher": {"id": "byName", "options": "Ce soir (prevu)"},
"properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "red"}},
{"id": "custom.pointSize", "value": {"fixed": 18}}]}]},
"options": {"mapping": "auto", "series": [{}],
# Mapping MANUEL, quatre series sur la MEME trame (index 0). L'automatique
# n'affichait que la premiere colonne Y (28/09, capture du proprietaire) ; la
# premiere version, une trame par requete, affichait « Err ».
"options": {"mapping": "manual",
"series": [{"frame": {"matcher": {"id": "byIndex", "options": 0}},
"x": {"matcher": {"id": "byName", "options": "Soiree"}},
"y": {"matcher": {"id": "byName", "options": n}}}
for n in ["Nuit sans voiture", "Nuit avec voiture", "Regression", "Ce soir (prevu)"]],
"legend": {"showLegend": True, "displayMode": "list", "placement": "bottom"},
"tooltip": {"mode": "single", "sort": "none"}}}