Home / Function/ ChartBarDemoLegend() — ui Function Reference

ChartBarDemoLegend() — ui Function Reference

Architecture documentation for the ChartBarDemoLegend() function in chart-example-legend.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  074ad7f8_6188_6363_e0aa_6f270aca245d["ChartBarDemoLegend()"]
  49799f92_3127_bf27_70af_a999b4ba0b39["chart-example-legend.tsx"]
  074ad7f8_6188_6363_e0aa_6f270aca245d -->|defined in| 49799f92_3127_bf27_70af_a999b4ba0b39
  style 074ad7f8_6188_6363_e0aa_6f270aca245d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/chart-example-legend.tsx lines 33–52

export function ChartBarDemoLegend() {
  return (
    <ChartContainer config={chartConfig} className="min-h-[200px] w-full">
      <BarChart accessibilityLayer data={chartData}>
        <CartesianGrid vertical={false} />
        <XAxis
          dataKey="month"
          tickLine={false}
          tickMargin={10}
          axisLine={false}
          tickFormatter={(value) => value.slice(0, 3)}
        />
        <ChartTooltip content={<ChartTooltipContent />} />
        <ChartLegend content={<ChartLegendContent />} />
        <Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
        <Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
      </BarChart>
    </ChartContainer>
  )
}

Subdomains

Frequently Asked Questions

What does ChartBarDemoLegend() do?
ChartBarDemoLegend() is a function in the ui codebase, defined in apps/v4/examples/base/chart-example-legend.tsx.
Where is ChartBarDemoLegend() defined?
ChartBarDemoLegend() is defined in apps/v4/examples/base/chart-example-legend.tsx at line 33.

Analyze Your Own Codebase

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

Try Supermodel Free