Home / Function/ ChartBarDemo() — ui Function Reference

ChartBarDemo() — ui Function Reference

Architecture documentation for the ChartBarDemo() function in chart-bar-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0dbee2a1_bc7c_b98b_5aa2_ded211bc86b5["ChartBarDemo()"]
  b4e522f0_7c14_c9f8_be91_95e8e9abf811["chart-bar-demo.tsx"]
  0dbee2a1_bc7c_b98b_5aa2_ded211bc86b5 -->|defined in| b4e522f0_7c14_c9f8_be91_95e8e9abf811
  style 0dbee2a1_bc7c_b98b_5aa2_ded211bc86b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/chart-bar-demo.tsx lines 43–80

export function ChartBarDemo() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Bar Chart - Multiple</CardTitle>
        <CardDescription>January - June 2024</CardDescription>
      </CardHeader>
      <CardContent>
        <ChartContainer config={chartConfig}>
          <BarChart accessibilityLayer data={chartData}>
            <CartesianGrid vertical={false} />
            <XAxis
              dataKey="month"
              tickLine={false}
              tickMargin={10}
              axisLine={false}
              tickFormatter={(value) => value.slice(0, 3)}
            />
            <ChartTooltip
              cursor={false}
              content={<ChartTooltipContent indicator="dashed" />}
            />
            <Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
            <Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
          </BarChart>
        </ChartContainer>
      </CardContent>
      <CardFooter className="flex-col items-start gap-2 text-sm">
        <div className="flex gap-2 leading-none font-medium">
          Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
        </div>
        <div className="text-muted-foreground leading-none">
          Showing total visitors for the last 6 months
        </div>
      </CardFooter>
    </Card>
  )
}

Subdomains

Frequently Asked Questions

What does ChartBarDemo() do?
ChartBarDemo() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/chart-bar-demo.tsx.
Where is ChartBarDemo() defined?
ChartBarDemo() is defined in apps/v4/app/(internal)/sink/components/chart-bar-demo.tsx at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free