npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2026 โ€“ย Pkg Stats / Ryan Hefner

react-shadcn-charts

v1.1.12

Published

## ๐Ÿ“ฆ Installation

Downloads

25

Readme

react-shadcn-charts

๐Ÿ“ฆ Installation

npm install react-shadcn-charts

Then import the bundled CSS once in your app (e.g. in _app.tsx or layout.tsx):

import "react-shadcn-charts/dist/index.css";

๐Ÿš€ Usage

LineChart

import { LineChart } from "react-shadcn-charts";

const data = [
  { month: "January", visitors: 120 },
  { month: "February", visitors: 200 },
  { month: "March", visitors: 150 },
  { month: "April", visitors: 300 },
  { month: "May", visitors: 250 },
  { month: "June", visitors: 400 },
];

export default function Demo() {
  return (
    <LineChart
      data={data}
      xKey="month"
      lineKey="visitors"
      curveType="natural"
    />
  );
}

Props:

  • data: object[] โ†’ array of chart data
  • xKey: string โ†’ field name for the X axis
  • lineKey: string โ†’ field name for the line values
  • color?: string โ†’ CSS color or var(--color-name)
  • type?: CurveType โ†’ curve style (default "linear")
  • className?: string โ†’ chart container style

PieChart

import { PieChart } from "react-shadcn-charts";

const data = [
  { label: "Apples", value: 120 },
  { label: "Oranges", value: 200 },
  { label: "Bananas", value: 150 },
  { label: "Mangoes", value: 220 },
];

export default function Demo() {
  return <PieChart data={data} />;
}

Props:

  • data: { label: string; value: number }[] โ†’ chart data
  • dataKey?: string โ†’ which field to use for values (default "value")
  • colors?: string[] โ†’ array of colors (CSS or variables)
  • className?: string โ†’ chart container style

๐Ÿ”ฎ Roadmap & Extensibility

The current version provides clean, production-ready LineChart and PieChart components.
We are actively working on extending functionality, including:

  • Additional chart types (Bar, Area, Donut, Radar, etc.)
  • More customization props (legends, tooltips, axis controls, themes)
  • Better accessibility support
  • Dark mode styling
  • Improved animations

Because both components are built on top of Recharts, you can already pass in
additional Recharts props through our wrappers (coming in future minor releases).

If you have feature requests, feel free to open an issue or PR on GitHub ๐Ÿš€