{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "chart-block", "title": "Chart", "description": "Beautiful charts with bar, line, and area visualizations.", "dependencies": [ "recharts" ], "registryDependencies": [ "@sistine/card", "@sistine/chart", "@sistine/tabs" ], "files": [ { "path": "components/blocks/chart.tsx", "content": "\"use client\";\n\nimport { Area, AreaChart, Bar, BarChart, CartesianGrid, Line, LineChart, XAxis, YAxis } from \"recharts\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\";\nimport { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent } from \"@/components/ui/chart\";\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@/components/ui/tabs\";\n\nconst barChartData = [\n {\n month: \"January\",\n desktop: 186,\n mobile: 80,\n },\n {\n month: \"February\",\n desktop: 305,\n mobile: 200,\n },\n {\n month: \"March\",\n desktop: 237,\n mobile: 120,\n },\n {\n month: \"April\",\n desktop: 273,\n mobile: 190,\n },\n {\n month: \"May\",\n desktop: 209,\n mobile: 130,\n },\n {\n month: \"June\",\n desktop: 214,\n mobile: 140,\n },\n];\n\nconst lineChartData = [\n {\n month: \"Jan\",\n revenue: 186,\n profit: 80,\n },\n {\n month: \"Feb\",\n revenue: 305,\n profit: 200,\n },\n {\n month: \"Mar\",\n revenue: 237,\n profit: 120,\n },\n {\n month: \"Apr\",\n revenue: 273,\n profit: 190,\n },\n {\n month: \"May\",\n revenue: 209,\n profit: 130,\n },\n {\n month: \"Jun\",\n revenue: 214,\n profit: 140,\n },\n];\n\nconst areaChartData = [\n {\n month: \"Jan\",\n sales: 186,\n returns: 20,\n },\n {\n month: \"Feb\",\n sales: 305,\n returns: 45,\n },\n {\n month: \"Mar\",\n sales: 237,\n returns: 30,\n },\n {\n month: \"Apr\",\n sales: 273,\n returns: 50,\n },\n {\n month: \"May\",\n sales: 209,\n returns: 35,\n },\n {\n month: \"Jun\",\n sales: 214,\n returns: 40,\n },\n];\n\nexport function ChartBlock() {\n return (\n
Visualize your data with beautiful charts
\n