{
  "name": "chart-with-filter-pills",
  "kind": "block",
  "primary": "section",
  "page": "/catalog/ui-patterns/v050-mode-c-blocks/v050-mode-c-blocks.contents.html",
  "slots": [],
  "nested": [],
  "attrs": {},
  "html": "<section>\n    <card-ui>\n      <header>\n        <row-ui gap=\"3\" align=\"center\">\n          <text-ui strong>Revenue</text-ui>\n          <segmented-ui value=\"month\" size=\"sm\">\n            <option value=\"day\">Day</option>\n            <option value=\"week\">Week</option>\n            <option value=\"month\">Month</option>\n            <option value=\"year\">Year</option>\n          </segmented-ui>\n        </row-ui>\n      </header>\n      <section>\n        <col-ui gap=\"2\">\n          <text-ui size=\"lg\" strong>$48,294</text-ui>\n          <text-ui size=\"sm\" color=\"success\">+12.4% vs prev period</text-ui>\n          <text-ui color=\"subtle\">[ chart body ]</text-ui>\n        </col-ui>\n      </section>\n    </card-ui>\n  </section>",
  "source": "catalog/ui-patterns/v050-mode-c-blocks/v050-mode-c-blocks.contents.html",
  "metadata": {
    "domain": "data",
    "description": "Chart card with time-range pill selector in the header — segmented switch between day/week/month/year + chart body + footer caption.",
    "keywords": [
      "chart",
      "filter",
      "pills",
      "time-range",
      "segmented",
      "period",
      "selector",
      "analytics",
      "dashboard",
      "card"
    ]
  },
  "captured_at": "2026-06-07T19:28:13.657Z",
  "template": [
    {
      "id": "text",
      "component": "Text",
      "strong": true,
      "textContent": "Revenue"
    },
    {
      "id": "text-2",
      "component": "Text",
      "textContent": "Day",
      "variant": "body"
    },
    {
      "id": "text-3",
      "component": "Text",
      "textContent": "Week",
      "variant": "body"
    },
    {
      "id": "text-4",
      "component": "Text",
      "textContent": "Month",
      "variant": "body"
    },
    {
      "id": "text-5",
      "component": "Text",
      "textContent": "Year",
      "variant": "body"
    },
    {
      "id": "segmented-control",
      "component": "SegmentedControl",
      "value": "month",
      "children": [
        "text-2",
        "text-3",
        "text-4",
        "text-5"
      ]
    },
    {
      "id": "row",
      "component": "Row",
      "align": "center",
      "gap": "3",
      "children": [
        "text",
        "segmented-control"
      ]
    },
    {
      "id": "header",
      "component": "Header",
      "children": [
        "row"
      ]
    },
    {
      "id": "text-6",
      "component": "Text",
      "size": "lg",
      "strong": true,
      "textContent": "$48,294"
    },
    {
      "id": "text-7",
      "component": "Text",
      "color": "success",
      "size": "sm",
      "textContent": "+12.4% vs prev period"
    },
    {
      "id": "text-8",
      "component": "Text",
      "color": "subtle",
      "textContent": "[ chart body ]"
    },
    {
      "id": "column-5",
      "component": "Column",
      "gap": "2",
      "children": [
        "text-6",
        "text-7",
        "text-8"
      ]
    },
    {
      "id": "section",
      "component": "Section",
      "children": [
        "column-5"
      ]
    },
    {
      "id": "card",
      "component": "Card",
      "children": [
        "header",
        "section"
      ]
    },
    {
      "id": "root",
      "component": "Section",
      "children": [
        "card"
      ]
    }
  ]
}
