Home / File/ chart-pie-interactive.tsx — ui Source File

chart-pie-interactive.tsx — ui Source File

Architecture documentation for chart-pie-interactive.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 6 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  2111eba9_e0b5_b576_c220_51c559bc05f7["chart-pie-interactive.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  da384753_eb23_55ed_e7a6_3bd0e172b999["recharts"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> da384753_eb23_55ed_e7a6_3bd0e172b999
  3d2d4b23_1d9e_fc14_c26b_c2060bfbf5ff["Pie"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> 3d2d4b23_1d9e_fc14_c26b_c2060bfbf5ff
  95a7752f_4b97_5bde_5d7d_fca03536ac35["card"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35
  54edb93d_8b2b_eda5_dfc1_461038aaa132["chart"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> 54edb93d_8b2b_eda5_dfc1_461038aaa132
  d493776b_8734_5d8d_382d_0f77f309a72b["select"]
  2111eba9_e0b5_b576_c220_51c559bc05f7 --> d493776b_8734_5d8d_382d_0f77f309a72b
  style 2111eba9_e0b5_b576_c220_51c559bc05f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Label, Pie, PieChart, Sector } from "recharts"
import { PieSectorDataItem } from "recharts/types/polar/Pie"

import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/registry/new-york/ui/card"
import {
  ChartConfig,
  ChartContainer,
  ChartStyle,
  ChartTooltip,
  ChartTooltipContent,
} from "@/registry/new-york/ui/chart"
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/registry/new-york/ui/select"

export const description = "An interactive pie chart"

const desktopData = [
  { month: "january", desktop: 186, fill: "var(--color-january)" },
  { month: "february", desktop: 305, fill: "var(--color-february)" },
  { month: "march", desktop: 237, fill: "var(--color-march)" },
  { month: "april", desktop: 173, fill: "var(--color-april)" },
  { month: "may", desktop: 209, fill: "var(--color-may)" },
]

const chartConfig = {
  visitors: {
    label: "Visitors",
  },
  desktop: {
    label: "Desktop",
  },
  mobile: {
    label: "Mobile",
  },
  january: {
    label: "January",
    color: "hsl(var(--chart-1))",
  },
  february: {
    label: "February",
    color: "hsl(var(--chart-2))",
  },
  march: {
    label: "March",
    color: "hsl(var(--chart-3))",
  },
// ... (133 more lines)

Subdomains

Functions

Dependencies

  • Pie
  • card
  • chart
  • react
  • recharts
  • select

Frequently Asked Questions

What does chart-pie-interactive.tsx do?
chart-pie-interactive.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in chart-pie-interactive.tsx?
chart-pie-interactive.tsx defines 1 function(s): Component.
What does chart-pie-interactive.tsx depend on?
chart-pie-interactive.tsx imports 6 module(s): Pie, card, chart, react, recharts, select.
Where is chart-pie-interactive.tsx in the architecture?
chart-pie-interactive.tsx is located at deprecated/www/registry/new-york/charts/chart-pie-interactive.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/charts).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free