# Adaptive Card sample: Action.Popover

- id: `action-popover`
- Adaptive Card schema version: 1.5

Demonstrates Action.Popover — a button that opens an inline popover containing a Container with TextBlocks, a Chart.Pie (categorical colorSet), and an ActionSet with Action.OpenUrl.

## Elements

- `Action.Popover` — maxPopoverWidth: 350px — content: Container
- `Chart.Pie` — colorSet: categorical — 8 fruit segments
- `ActionSet` — inside popover content
- `Action.OpenUrl` — tooltip, url: microsoft.com

## Card JSON

```json
{
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "Click the button below to open a popover"
    }
  ],
  "actions": [
    {
      "type": "Action.Popover",
      "title": "Click me!",
      "maxPopoverWidth": "350px",
      "content": {
        "type": "Container",
        "items": [
          {
            "type": "TextBlock",
            "weight": "bolder",
            "size": "large",
            "text": "This is a popover"
          },
          {
            "type": "TextBlock",
            "text": "This popover is made with Adaptive Card elements. It can contain anything like charts and even action buttons!"
          },
          {
            "type": "Chart.Pie",
            "colorSet": "categorical",
            "data": [
              {
                "legend": "Pear",
                "value": 59
              },
              {
                "legend": "Banana",
                "value": 292
              },
              {
                "legend": "Apple",
                "value": 143
              },
              {
                "legend": "Peach",
                "value": 98
              },
              {
                "legend": "Kiwi",
                "value": 179
              },
              {
                "legend": "Grapefruit",
                "value": 50
              },
              {
                "legend": "Orange",
                "value": 212
              },
              {
                "legend": "Cantaloupe",
                "value": 68
              }
            ]
          },
          {
            "type": "ActionSet",
            "actions": [
              {
                "type": "Action.OpenUrl",
                "title": "Open URL",
                "tooltip": "Click me",
                "url": "https://www.microsoft.com"
              }
            ]
          }
        ]
      }
    }
  ]
}
```
