{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-HighOrderPage-charts-chart-card-bar-line-pie-area-chart-legend-10",
  "type": "registry:block",
  "title": "Chart patterns",
  "description": "UI patterns card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "ui-patterns"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/HighOrderPage-charts-chart-card-bar-line-pie-area-chart-legend-10.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/HighOrderPage-charts-chart-card-bar-line-pie-area-chart-legend-10.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/pages/HighOrderPage.tsx:520.\nimport { SectionCard } from \"./runtime/components/overtrue/section-card\";\nimport {\n  ChartCard,\n  SimpleBarChart,\n  SimpleLineChart,\n  SimplePieChart,\n  ChartLegend,\n} from \"./runtime/components/overtrue/chart\";\nimport { AreaTrendChart, BarMetricChart } from \"./runtime/components/overtrue/charts\";\nimport { salesSeries } from \"./runtime/data/mock\";\nconst barData = salesSeries.map((s) => ({ name: s.label, value: s.value }));\nconst pieData = [\n  { name: \"Regular\", value: 3520 },\n  { name: \"System\", value: 1520 },\n  { name: \"Shared\", value: 720 },\n  { name: \"Free\", value: 2240 },\n];\nfunction CardExample() {\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"high-order\">\n        <SectionCard title=\"Charts — ChartCard / Bar / Line / Pie / Area / ChartLegend\">\n          <div className=\"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-4\">\n            <ChartCard title=\"Bar\">\n              <SimpleBarChart\n                data={barData}\n                xKey=\"name\"\n                yKey=\"value\"\n                height={200}\n              />\n            </ChartCard>\n            <ChartCard title=\"Line\">\n              <SimpleLineChart\n                data={barData}\n                xKey=\"name\"\n                yKey=\"value\"\n                height={200}\n              />\n            </ChartCard>\n            <ChartCard title=\"Pie + ChartLegend\" height={280}>\n              <SimplePieChart data={pieData} height={160} />\n              <ChartLegend\n                className=\"mt-2\"\n                items={pieData.map((d, i) => ({\n                  label: d.name,\n                  value: String(d.value),\n                  color: [\"#066fd1\", \"#4299e1\", \"#f76707\", \"#6b7280\"][i],\n                }))}\n              />\n            </ChartCard>\n            <AreaTrendChart\n              title=\"AreaTrendChart\"\n              data={barData}\n              height={200}\n            />\n          </div>\n          <div className=\"mt-3\">\n            <BarMetricChart\n              title=\"BarMetricChart\"\n              data={barData}\n              height={200}\n            />\n          </div>\n        </SectionCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/HighOrderPage-charts-chart-card-bar-line-pie-area-chart-legend-10. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
