Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
pixelThreader opened this issue May 25, 2025 · 0 comments · May be fixed by #7489
Open
2 tasks done

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

pixelThreader opened this issue May 25, 2025 · 0 comments · May be fixed by #7489
Labels
bug Something isn't working

Comments

@pixelThreader
Copy link

pixelThreader commented May 25, 2025

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
@pixelThreader pixelThreader added the bug Something isn't working label May 25, 2025
harshith-eth added a commit to harshith-eth/ui that referenced this issue May 28, 2025
Fixes shadcn-ui#7465 - corrected import path from "@/components/ui/charts" to "@/components/ui/chart" in the documentation example
@harshith-eth harshith-eth linked a pull request May 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant