Home / Function/ ChartLineDotsColors() — ui Function Reference

ChartLineDotsColors() — ui Function Reference

Architecture documentation for the ChartLineDotsColors() function in chart-line-dots-colors.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  13b2add0_aceb_ece7_54da_c8724d376c8a["ChartLineDotsColors()"]
  d504ab3c_7a7f_ba8f_0960_535f3908420b["chart-line-dots-colors.tsx"]
  13b2add0_aceb_ece7_54da_c8724d376c8a -->|defined in| d504ab3c_7a7f_ba8f_0960_535f3908420b
  style 13b2add0_aceb_ece7_54da_c8724d376c8a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx lines 58–118

export function ChartLineDotsColors() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Line Chart - Dots Colors</CardTitle>
        <CardDescription>January - June 2024</CardDescription>
      </CardHeader>
      <CardContent>
        <ChartContainer config={chartConfig}>
          <LineChart
            accessibilityLayer
            data={chartData}
            margin={{
              top: 24,
              left: 24,
              right: 24,
            }}
          >
            <CartesianGrid vertical={false} />
            <ChartTooltip
              cursor={false}
              content={
                <ChartTooltipContent
                  indicator="line"
                  nameKey="visitors"
                  hideLabel
                />
              }
            />
            <Line
              dataKey="visitors"
              type="natural"
              stroke="var(--color-visitors)"
              strokeWidth={2}
              dot={({ payload, ...props }) => {
                return (
                  <Dot
                    key={payload.browser}
                    r={5}
                    cx={props.cx}
                    cy={props.cy}
                    fill={payload.fill}
                    stroke={payload.fill}
                  />
                )
              }}
            />
          </LineChart>
        </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 ChartLineDotsColors() do?
ChartLineDotsColors() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx.
Where is ChartLineDotsColors() defined?
ChartLineDotsColors() is defined in apps/v4/registry/new-york-v4/charts/chart-line-dots-colors.tsx at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free