# Adaptive Card sample: SVG Prévision jauges

- id: `svg-forecast-gauges`
- Adaptive Card schema version: 1.6

Carte CRM : prévisions sous forme de jauges. Les jauges sont des images SVG (data URI base64) générées côté serveur par le service émetteur et embarquées telles quelles dans la carte — le client Rainbow ne les calcule pas. Pattern et limites : /docs/AdaptiveCard-Patterns.en.md

## Elements

- `Image (data:image/svg+xml)` — jauges SVG base64 inline

## Card JSON

```json
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.6",
  "body": [
    {
      "type": "TextBlock",
      "text": "🎯 Prévision T3",
      "wrap": true,
      "size": "Large",
      "weight": "Bolder"
    },
    {
      "type": "TextBlock",
      "text": "Objectif 25,0 M€ · clôture dans 24 jours",
      "wrap": true,
      "isSubtle": true,
      "spacing": "None"
    },
    {
      "type": "Container",
      "style": "emphasis",
      "spacing": "Medium",
      "items": [
        {
          "type": "ColumnSet",
          "columns": [
            {
              "type": "Column",
              "width": "stretch",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Signé",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "29 %",
                  "wrap": false,
                  "weight": "Bolder",
                  "color": "Attention"
                }
              ]
            }
          ]
        },
        {
          "type": "Image",
          "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDI0MCA4Ij48cmVjdCB3aWR0aD0iMjQwIiBoZWlnaHQ9IjgiIHJ4PSI0IiBmaWxsPSIjQzhDNkM0Ii8+PHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjgiIHJ4PSI0IiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
          "width": "240px",
          "height": "8px",
          "spacing": "Small",
          "altText": "Signé 29 %"
        },
        {
          "type": "TextBlock",
          "text": "7,3 M€ signés",
          "wrap": true,
          "size": "Small",
          "isSubtle": true,
          "spacing": "Small"
        }
      ]
    },
    {
      "type": "Container",
      "style": "emphasis",
      "spacing": "Small",
      "items": [
        {
          "type": "ColumnSet",
          "columns": [
            {
              "type": "Column",
              "width": "stretch",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Engagement pondéré",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "76 %",
                  "wrap": false,
                  "weight": "Bolder",
                  "color": "Default"
                }
              ]
            }
          ]
        },
        {
          "type": "Image",
          "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDI0MCA4Ij48cmVjdCB3aWR0aD0iMjQwIiBoZWlnaHQ9IjgiIHJ4PSI0IiBmaWxsPSIjQzhDNkM0Ii8+PHJlY3Qgd2lkdGg9IjE4MiIgaGVpZ2h0PSI4IiByeD0iNCIgZmlsbD0iIzIwNjFGMCIvPjwvc3ZnPg==",
          "width": "240px",
          "height": "8px",
          "spacing": "Small",
          "altText": "Engagement pondéré 76 %"
        },
        {
          "type": "TextBlock",
          "text": "18,9 M€ pondérés",
          "wrap": true,
          "size": "Small",
          "isSubtle": true,
          "spacing": "Small"
        }
      ]
    },
    {
      "type": "Container",
      "style": "emphasis",
      "spacing": "Small",
      "items": [
        {
          "type": "ColumnSet",
          "columns": [
            {
              "type": "Column",
              "width": "stretch",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Couverture du pipeline",
                  "wrap": true,
                  "weight": "Bolder"
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "170 %",
                  "wrap": false,
                  "weight": "Bolder",
                  "color": "Good"
                }
              ]
            }
          ]
        },
        {
          "type": "Image",
          "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDI0MCA4Ij48cmVjdCB3aWR0aD0iMjQwIiBoZWlnaHQ9IjgiIHJ4PSI0IiBmaWxsPSIjQzhDNkM0Ii8+PHJlY3Qgd2lkdGg9IjI0MCIgaGVpZ2h0PSI4IiByeD0iNCIgZmlsbD0iIzIwNjFGMCIvPjwvc3ZnPg==",
          "width": "240px",
          "height": "8px",
          "spacing": "Small",
          "altText": "Couverture du pipeline 170 %"
        },
        {
          "type": "TextBlock",
          "text": "42,5 M€ de pipeline",
          "wrap": true,
          "size": "Small",
          "isSubtle": true,
          "spacing": "Small"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "data": {
        "rainbow": {
          "type": "messageBack",
          "value": {
            "response": "y"
          }
        }
      },
      "title": "Voir le détail"
    }
  ]
}
```
