Home / Function/ ChartBarNegative() — ui Function Reference

ChartBarNegative() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1280d5ab_75e1_4245_00a4_ae85a957b97a["ChartBarNegative()"]
  28eb1382_5737_b3b3_e297_a069f7780ccd["chart-bar-negative.tsx"]
  1280d5ab_75e1_4245_00a4_ae85a957b97a -->|defined in| 28eb1382_5737_b3b3_e297_a069f7780ccd
  style 1280d5ab_75e1_4245_00a4_ae85a957b97a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx lines 38–75

export function ChartBarNegative() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Bar Chart - Negative</CardTitle>
        <CardDescription>January - June 2024</CardDescription>
      </CardHeader>
      <CardContent>
        <ChartContainer config={chartConfig}>
          <BarChart accessibilityLayer data={chartData}>
            <CartesianGrid vertical={false} />
            <ChartTooltip
              cursor={false}
              content={<ChartTooltipContent hideLabel hideIndicator />}
            />
            <Bar dataKey="visitors">
              <LabelList position="top" dataKey="month" fillOpacity={1} />
              {chartData.map((item) => (
                <Cell
                  key={item.month}
                  fill={item.visitors > 0 ? "var(--chart-1)" : "var(--chart-2)"}
                />
              ))}
            </Bar>
          </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 ChartBarNegative() do?
ChartBarNegative() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx.
Where is ChartBarNegative() defined?
ChartBarNegative() is defined in apps/v4/registry/new-york-v4/charts/chart-bar-negative.tsx at line 38.

Analyze Your Own Codebase

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

Try Supermodel Free