Skip to content

[bug]: Typo in Chart Component Documentation Import Path #7465

@pixelThreader

Description

@pixelThreader

Describe the bug

Hi,

There appears to be a small typo in the Chart component documentation:

URL: https://ui.shadcn.com/docs/components/chart#component

Screenshot for reference:
Image

Thanks for the awesome work on this project!

Affected component/components

Chart Tooltip Component

How to reproduce

Current (incorrect) code:

import { ChartContainer, ChartTooltipContent } from "@/components/ui/charts"

Expected (corrected) code:

import { ChartContainer, ChartTooltipContent } from "@/components/ui/chart"

Note the extra "s" in "charts", it should be singular to match the actual file path.

Codesandbox/StackBlitz link

No response

Logs

Just a simple typo.

System Info

Just a simple typo.

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions