Visualisation graphique
visualizeCrée une visualisation Plotly (retourne le spec JSON).
Deux modes :
- Spec libre : fournir 'spec' (dict Plotly complet {data, layout})
- Assisté : fournir chart_type + data + mappings
Types supportés : bar, line, scatter, histogram, box, violin, heatmap,
treemap, grouped_bar, stacked_bar, dumbbell, diverging_bar,
dual_axis (x + y + y2), sankey (source + target + values),
hemicycle (x=groupe, y=sièges), ternary (a + b + c = trois parts).
Paramètres transversaux : subtitle (sous-titre technique),
reference_line ({value, label, orientation}) pour un seuil/référence.
sample_size (bar) : colonne d'effectif (inscrits, nombre de bureaux)
affichée « n = … » sous chaque catégorie.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "visualize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | No | ||
| c | No | ||
| x | No | ||
| y | No | ||
| z | No | ||
| y2 | No | ||
| data | No | ||
| path | No | ||
| size | No | ||
| spec | No | ||
| color | No | ||
| title | No | ||
| source | No | ||
| target | No | ||
| values | No | ||
| subtitle | No | ||
| data_file | No | ||
| chart_type | No | ||
| sample_size | No | ||
| reference_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |