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:
@@ -760,9 +760,88 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"mapping": "auto",
|
"mapping": "manual",
|
||||||
"series": [
|
"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": {
|
"legend": {
|
||||||
"showLegend": true,
|
"showLegend": true,
|
||||||
|
|||||||
@@ -276,7 +276,14 @@ NUIT_XY = {"type": "xychart", "title": "Soiree contre nuit : le nuage des nuits"
|
|||||||
{"matcher": {"id": "byName", "options": "Ce soir (prevu)"},
|
{"matcher": {"id": "byName", "options": "Ce soir (prevu)"},
|
||||||
"properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "red"}},
|
"properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "red"}},
|
||||||
{"id": "custom.pointSize", "value": {"fixed": 18}}]}]},
|
{"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"},
|
"legend": {"showLegend": True, "displayMode": "list", "placement": "bottom"},
|
||||||
"tooltip": {"mode": "single", "sort": "none"}}}
|
"tooltip": {"mode": "single", "sort": "none"}}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user